gst-plugins-nuvdemux/autom4te.cache/output.1
author melunko
Tue Oct 24 15:02:26 2006 +0100 (2006-10-24)
branchtrunk
changeset 47 8bff300ebf50
permissions -rw-r--r--
[svn r48] Added gst-plugins-nuvdemux
melunko@47
     1
@%:@! /bin/sh
melunko@47
     2
@%:@ Guess values for system-dependent variables and create Makefiles.
melunko@47
     3
@%:@ Generated by GNU Autoconf 2.59.
melunko@47
     4
@%:@ 
melunko@47
     5
@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
melunko@47
     6
@%:@ This configure script is free software; the Free Software Foundation
melunko@47
     7
@%:@ gives unlimited permission to copy, distribute and modify it.
melunko@47
     8
## --------------------- ##
melunko@47
     9
## M4sh Initialization.  ##
melunko@47
    10
## --------------------- ##
melunko@47
    11
melunko@47
    12
# Be Bourne compatible
melunko@47
    13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
melunko@47
    14
  emulate sh
melunko@47
    15
  NULLCMD=:
melunko@47
    16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
melunko@47
    17
  # is contrary to our usage.  Disable this feature.
melunko@47
    18
  alias -g '${1+"$@"}'='"$@"'
melunko@47
    19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
melunko@47
    20
  set -o posix
melunko@47
    21
fi
melunko@47
    22
DUALCASE=1; export DUALCASE # for MKS sh
melunko@47
    23
melunko@47
    24
# Support unset when possible.
melunko@47
    25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
melunko@47
    26
  as_unset=unset
melunko@47
    27
else
melunko@47
    28
  as_unset=false
melunko@47
    29
fi
melunko@47
    30
melunko@47
    31
melunko@47
    32
# Work around bugs in pre-3.0 UWIN ksh.
melunko@47
    33
$as_unset ENV MAIL MAILPATH
melunko@47
    34
PS1='$ '
melunko@47
    35
PS2='> '
melunko@47
    36
PS4='+ '
melunko@47
    37
melunko@47
    38
# NLS nuisances.
melunko@47
    39
for as_var in \
melunko@47
    40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
melunko@47
    41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
melunko@47
    42
  LC_TELEPHONE LC_TIME
melunko@47
    43
do
melunko@47
    44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
melunko@47
    45
    eval $as_var=C; export $as_var
melunko@47
    46
  else
melunko@47
    47
    $as_unset $as_var
melunko@47
    48
  fi
melunko@47
    49
done
melunko@47
    50
melunko@47
    51
# Required to use basename.
melunko@47
    52
if expr a : '\(a\)' >/dev/null 2>&1; then
melunko@47
    53
  as_expr=expr
melunko@47
    54
else
melunko@47
    55
  as_expr=false
melunko@47
    56
fi
melunko@47
    57
melunko@47
    58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
melunko@47
    59
  as_basename=basename
melunko@47
    60
else
melunko@47
    61
  as_basename=false
melunko@47
    62
fi
melunko@47
    63
melunko@47
    64
melunko@47
    65
# Name of the executable.
melunko@47
    66
as_me=`$as_basename "$0" ||
melunko@47
    67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
melunko@47
    68
	 X"$0" : 'X\(//\)$' \| \
melunko@47
    69
	 X"$0" : 'X\(/\)$' \| \
melunko@47
    70
	 .     : '\(.\)' 2>/dev/null ||
melunko@47
    71
echo X/"$0" |
melunko@47
    72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
melunko@47
    73
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
melunko@47
    74
  	  /^X\/\(\/\).*/{ s//\1/; q; }
melunko@47
    75
  	  s/.*/./; q'`
melunko@47
    76
melunko@47
    77
melunko@47
    78
# PATH needs CR, and LINENO needs CR and PATH.
melunko@47
    79
# Avoid depending upon Character Ranges.
melunko@47
    80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
melunko@47
    81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
melunko@47
    82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
melunko@47
    83
as_cr_digits='0123456789'
melunko@47
    84
as_cr_alnum=$as_cr_Letters$as_cr_digits
melunko@47
    85
melunko@47
    86
# The user is always right.
melunko@47
    87
if test "${PATH_SEPARATOR+set}" != set; then
melunko@47
    88
  echo "#! /bin/sh" >conf$$.sh
melunko@47
    89
  echo  "exit 0"   >>conf$$.sh
melunko@47
    90
  chmod +x conf$$.sh
melunko@47
    91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
melunko@47
    92
    PATH_SEPARATOR=';'
melunko@47
    93
  else
melunko@47
    94
    PATH_SEPARATOR=:
melunko@47
    95
  fi
melunko@47
    96
  rm -f conf$$.sh
melunko@47
    97
fi
melunko@47
    98
melunko@47
    99
melunko@47
   100
  as_lineno_1=$LINENO
melunko@47
   101
  as_lineno_2=$LINENO
melunko@47
   102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
melunko@47
   103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
melunko@47
   104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
melunko@47
   105
  # Find who we are.  Look in the path if we contain no path at all
melunko@47
   106
  # relative or not.
melunko@47
   107
  case $0 in
melunko@47
   108
    *[\\/]* ) as_myself=$0 ;;
melunko@47
   109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
   110
for as_dir in $PATH
melunko@47
   111
do
melunko@47
   112
  IFS=$as_save_IFS
melunko@47
   113
  test -z "$as_dir" && as_dir=.
melunko@47
   114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
melunko@47
   115
done
melunko@47
   116
melunko@47
   117
       ;;
melunko@47
   118
  esac
melunko@47
   119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
melunko@47
   120
  # in which case we are not to be found in the path.
melunko@47
   121
  if test "x$as_myself" = x; then
melunko@47
   122
    as_myself=$0
melunko@47
   123
  fi
melunko@47
   124
  if test ! -f "$as_myself"; then
melunko@47
   125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
melunko@47
   126
   { (exit 1); exit 1; }; }
melunko@47
   127
  fi
melunko@47
   128
  case $CONFIG_SHELL in
melunko@47
   129
  '')
melunko@47
   130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
   131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
melunko@47
   132
do
melunko@47
   133
  IFS=$as_save_IFS
melunko@47
   134
  test -z "$as_dir" && as_dir=.
melunko@47
   135
  for as_base in sh bash ksh sh5; do
melunko@47
   136
	 case $as_dir in
melunko@47
   137
	 /*)
melunko@47
   138
	   if ("$as_dir/$as_base" -c '
melunko@47
   139
  as_lineno_1=$LINENO
melunko@47
   140
  as_lineno_2=$LINENO
melunko@47
   141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
melunko@47
   142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
melunko@47
   143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
melunko@47
   144
	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
melunko@47
   145
	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
melunko@47
   146
	     CONFIG_SHELL=$as_dir/$as_base
melunko@47
   147
	     export CONFIG_SHELL
melunko@47
   148
	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
melunko@47
   149
	   fi;;
melunko@47
   150
	 esac
melunko@47
   151
       done
melunko@47
   152
done
melunko@47
   153
;;
melunko@47
   154
  esac
melunko@47
   155
melunko@47
   156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
melunko@47
   157
  # uniformly replaced by the line number.  The first 'sed' inserts a
melunko@47
   158
  # line-number line before each line; the second 'sed' does the real
melunko@47
   159
  # work.  The second script uses 'N' to pair each line-number line
melunko@47
   160
  # with the numbered line, and appends trailing '-' during
melunko@47
   161
  # substitution so that $LINENO is not a special case at line end.
melunko@47
   162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
melunko@47
   163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
melunko@47
   164
  sed '=' <$as_myself |
melunko@47
   165
    sed '
melunko@47
   166
      N
melunko@47
   167
      s,$,-,
melunko@47
   168
      : loop
melunko@47
   169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
melunko@47
   170
      t loop
melunko@47
   171
      s,-$,,
melunko@47
   172
      s,^['$as_cr_digits']*\n,,
melunko@47
   173
    ' >$as_me.lineno &&
melunko@47
   174
  chmod +x $as_me.lineno ||
melunko@47
   175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
melunko@47
   176
   { (exit 1); exit 1; }; }
melunko@47
   177
melunko@47
   178
  # Don't try to exec as it changes $[0], causing all sort of problems
melunko@47
   179
  # (the dirname of $[0] is not the place where we might find the
melunko@47
   180
  # original and so on.  Autoconf is especially sensible to this).
melunko@47
   181
  . ./$as_me.lineno
melunko@47
   182
  # Exit status is that of the last command.
melunko@47
   183
  exit
melunko@47
   184
}
melunko@47
   185
melunko@47
   186
melunko@47
   187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
melunko@47
   188
  *c*,-n*) ECHO_N= ECHO_C='
melunko@47
   189
' ECHO_T='	' ;;
melunko@47
   190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
melunko@47
   191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
melunko@47
   192
esac
melunko@47
   193
melunko@47
   194
if expr a : '\(a\)' >/dev/null 2>&1; then
melunko@47
   195
  as_expr=expr
melunko@47
   196
else
melunko@47
   197
  as_expr=false
melunko@47
   198
fi
melunko@47
   199
melunko@47
   200
rm -f conf$$ conf$$.exe conf$$.file
melunko@47
   201
echo >conf$$.file
melunko@47
   202
if ln -s conf$$.file conf$$ 2>/dev/null; then
melunko@47
   203
  # We could just check for DJGPP; but this test a) works b) is more generic
melunko@47
   204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
melunko@47
   205
  if test -f conf$$.exe; then
melunko@47
   206
    # Don't use ln at all; we don't have any links
melunko@47
   207
    as_ln_s='cp -p'
melunko@47
   208
  else
melunko@47
   209
    as_ln_s='ln -s'
melunko@47
   210
  fi
melunko@47
   211
elif ln conf$$.file conf$$ 2>/dev/null; then
melunko@47
   212
  as_ln_s=ln
melunko@47
   213
else
melunko@47
   214
  as_ln_s='cp -p'
melunko@47
   215
fi
melunko@47
   216
rm -f conf$$ conf$$.exe conf$$.file
melunko@47
   217
melunko@47
   218
if mkdir -p . 2>/dev/null; then
melunko@47
   219
  as_mkdir_p=:
melunko@47
   220
else
melunko@47
   221
  test -d ./-p && rmdir ./-p
melunko@47
   222
  as_mkdir_p=false
melunko@47
   223
fi
melunko@47
   224
melunko@47
   225
as_executable_p="test -f"
melunko@47
   226
melunko@47
   227
# Sed expression to map a string onto a valid CPP name.
melunko@47
   228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
melunko@47
   229
melunko@47
   230
# Sed expression to map a string onto a valid variable name.
melunko@47
   231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
melunko@47
   232
melunko@47
   233
melunko@47
   234
# IFS
melunko@47
   235
# We need space, tab and new line, in precisely that order.
melunko@47
   236
as_nl='
melunko@47
   237
'
melunko@47
   238
IFS=" 	$as_nl"
melunko@47
   239
melunko@47
   240
# CDPATH.
melunko@47
   241
$as_unset CDPATH
melunko@47
   242
melunko@47
   243
melunko@47
   244
melunko@47
   245
# Check that we are running under the correct shell.
melunko@47
   246
SHELL=${CONFIG_SHELL-/bin/sh}
melunko@47
   247
melunko@47
   248
case X$ECHO in
melunko@47
   249
X*--fallback-echo)
melunko@47
   250
  # Remove one level of quotation (which was required for Make).
melunko@47
   251
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
melunko@47
   252
  ;;
melunko@47
   253
esac
melunko@47
   254
melunko@47
   255
echo=${ECHO-echo}
melunko@47
   256
if test "X$1" = X--no-reexec; then
melunko@47
   257
  # Discard the --no-reexec flag, and continue.
melunko@47
   258
  shift
melunko@47
   259
elif test "X$1" = X--fallback-echo; then
melunko@47
   260
  # Avoid inline document here, it may be left over
melunko@47
   261
  :
melunko@47
   262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
melunko@47
   263
  # Yippee, $echo works!
melunko@47
   264
  :
melunko@47
   265
else
melunko@47
   266
  # Restart under the correct shell.
melunko@47
   267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
melunko@47
   268
fi
melunko@47
   269
melunko@47
   270
if test "X$1" = X--fallback-echo; then
melunko@47
   271
  # used as fallback echo
melunko@47
   272
  shift
melunko@47
   273
  cat <<EOF
melunko@47
   274
$*
melunko@47
   275
EOF
melunko@47
   276
  exit 0
melunko@47
   277
fi
melunko@47
   278
melunko@47
   279
# The HP-UX ksh and POSIX shell print the target directory to stdout
melunko@47
   280
# if CDPATH is set.
melunko@47
   281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
melunko@47
   282
melunko@47
   283
if test -z "$ECHO"; then
melunko@47
   284
if test "X${echo_test_string+set}" != Xset; then
melunko@47
   285
# find a string as large as possible, as long as the shell can cope with it
melunko@47
   286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
melunko@47
   287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
melunko@47
   288
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
melunko@47
   289
       echo_test_string=`eval $cmd` &&
melunko@47
   290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
melunko@47
   291
    then
melunko@47
   292
      break
melunko@47
   293
    fi
melunko@47
   294
  done
melunko@47
   295
fi
melunko@47
   296
melunko@47
   297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
melunko@47
   298
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
melunko@47
   299
   test "X$echo_testing_string" = "X$echo_test_string"; then
melunko@47
   300
  :
melunko@47
   301
else
melunko@47
   302
  # The Solaris, AIX, and Digital Unix default echo programs unquote
melunko@47
   303
  # backslashes.  This makes it impossible to quote backslashes using
melunko@47
   304
  #   echo "$something" | sed 's/\\/\\\\/g'
melunko@47
   305
  #
melunko@47
   306
  # So, first we look for a working echo in the user's PATH.
melunko@47
   307
melunko@47
   308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
melunko@47
   309
  for dir in $PATH /usr/ucb; do
melunko@47
   310
    IFS="$lt_save_ifs"
melunko@47
   311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
melunko@47
   312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
melunko@47
   313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
melunko@47
   314
       test "X$echo_testing_string" = "X$echo_test_string"; then
melunko@47
   315
      echo="$dir/echo"
melunko@47
   316
      break
melunko@47
   317
    fi
melunko@47
   318
  done
melunko@47
   319
  IFS="$lt_save_ifs"
melunko@47
   320
melunko@47
   321
  if test "X$echo" = Xecho; then
melunko@47
   322
    # We didn't find a better echo, so look for alternatives.
melunko@47
   323
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
melunko@47
   324
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
melunko@47
   325
       test "X$echo_testing_string" = "X$echo_test_string"; then
melunko@47
   326
      # This shell has a builtin print -r that does the trick.
melunko@47
   327
      echo='print -r'
melunko@47
   328
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
melunko@47
   329
	 test "X$CONFIG_SHELL" != X/bin/ksh; then
melunko@47
   330
      # If we have ksh, try running configure again with it.
melunko@47
   331
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
melunko@47
   332
      export ORIGINAL_CONFIG_SHELL
melunko@47
   333
      CONFIG_SHELL=/bin/ksh
melunko@47
   334
      export CONFIG_SHELL
melunko@47
   335
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
melunko@47
   336
    else
melunko@47
   337
      # Try using printf.
melunko@47
   338
      echo='printf %s\n'
melunko@47
   339
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
melunko@47
   340
	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
melunko@47
   341
	 test "X$echo_testing_string" = "X$echo_test_string"; then
melunko@47
   342
	# Cool, printf works
melunko@47
   343
	:
melunko@47
   344
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
melunko@47
   345
	   test "X$echo_testing_string" = 'X\t' &&
melunko@47
   346
	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
melunko@47
   347
	   test "X$echo_testing_string" = "X$echo_test_string"; then
melunko@47
   348
	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
melunko@47
   349
	export CONFIG_SHELL
melunko@47
   350
	SHELL="$CONFIG_SHELL"
melunko@47
   351
	export SHELL
melunko@47
   352
	echo="$CONFIG_SHELL $0 --fallback-echo"
melunko@47
   353
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
melunko@47
   354
	   test "X$echo_testing_string" = 'X\t' &&
melunko@47
   355
	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
melunko@47
   356
	   test "X$echo_testing_string" = "X$echo_test_string"; then
melunko@47
   357
	echo="$CONFIG_SHELL $0 --fallback-echo"
melunko@47
   358
      else
melunko@47
   359
	# maybe with a smaller string...
melunko@47
   360
	prev=:
melunko@47
   361
melunko@47
   362
	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
melunko@47
   363
	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
melunko@47
   364
	  then
melunko@47
   365
	    break
melunko@47
   366
	  fi
melunko@47
   367
	  prev="$cmd"
melunko@47
   368
	done
melunko@47
   369
melunko@47
   370
	if test "$prev" != 'sed 50q "$0"'; then
melunko@47
   371
	  echo_test_string=`eval $prev`
melunko@47
   372
	  export echo_test_string
melunko@47
   373
	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
melunko@47
   374
	else
melunko@47
   375
	  # Oops.  We lost completely, so just stick with echo.
melunko@47
   376
	  echo=echo
melunko@47
   377
	fi
melunko@47
   378
      fi
melunko@47
   379
    fi
melunko@47
   380
  fi
melunko@47
   381
fi
melunko@47
   382
fi
melunko@47
   383
melunko@47
   384
# Copy echo and quote the copy suitably for passing to libtool from
melunko@47
   385
# the Makefile, instead of quoting the original, which is used later.
melunko@47
   386
ECHO=$echo
melunko@47
   387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
melunko@47
   388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
melunko@47
   389
fi
melunko@47
   390
melunko@47
   391
melunko@47
   392
melunko@47
   393
melunko@47
   394
tagnames=${tagnames+${tagnames},}CXX
melunko@47
   395
melunko@47
   396
tagnames=${tagnames+${tagnames},}F77
melunko@47
   397
melunko@47
   398
# Name of the host.
melunko@47
   399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
melunko@47
   400
# so uname gets run too.
melunko@47
   401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
melunko@47
   402
melunko@47
   403
exec 6>&1
melunko@47
   404
melunko@47
   405
#
melunko@47
   406
# Initializations.
melunko@47
   407
#
melunko@47
   408
ac_default_prefix=/usr/local
melunko@47
   409
ac_config_libobj_dir=.
melunko@47
   410
cross_compiling=no
melunko@47
   411
subdirs=
melunko@47
   412
MFLAGS=
melunko@47
   413
MAKEFLAGS=
melunko@47
   414
SHELL=${CONFIG_SHELL-/bin/sh}
melunko@47
   415
melunko@47
   416
# Maximum number of lines to put in a shell here document.
melunko@47
   417
# This variable seems obsolete.  It should probably be removed, and
melunko@47
   418
# only ac_max_sed_lines should be used.
melunko@47
   419
: ${ac_max_here_lines=38}
melunko@47
   420
melunko@47
   421
# Identity of this package.
melunko@47
   422
PACKAGE_NAME=
melunko@47
   423
PACKAGE_TARNAME=
melunko@47
   424
PACKAGE_VERSION=
melunko@47
   425
PACKAGE_STRING=
melunko@47
   426
PACKAGE_BUGREPORT=
melunko@47
   427
melunko@47
   428
# Factoring default headers for most tests.
melunko@47
   429
ac_includes_default="\
melunko@47
   430
#include <stdio.h>
melunko@47
   431
#if HAVE_SYS_TYPES_H
melunko@47
   432
# include <sys/types.h>
melunko@47
   433
#endif
melunko@47
   434
#if HAVE_SYS_STAT_H
melunko@47
   435
# include <sys/stat.h>
melunko@47
   436
#endif
melunko@47
   437
#if STDC_HEADERS
melunko@47
   438
# include <stdlib.h>
melunko@47
   439
# include <stddef.h>
melunko@47
   440
#else
melunko@47
   441
# if HAVE_STDLIB_H
melunko@47
   442
#  include <stdlib.h>
melunko@47
   443
# endif
melunko@47
   444
#endif
melunko@47
   445
#if HAVE_STRING_H
melunko@47
   446
# if !STDC_HEADERS && HAVE_MEMORY_H
melunko@47
   447
#  include <memory.h>
melunko@47
   448
# endif
melunko@47
   449
# include <string.h>
melunko@47
   450
#endif
melunko@47
   451
#if HAVE_STRINGS_H
melunko@47
   452
# include <strings.h>
melunko@47
   453
#endif
melunko@47
   454
#if HAVE_INTTYPES_H
melunko@47
   455
# include <inttypes.h>
melunko@47
   456
#else
melunko@47
   457
# if HAVE_STDINT_H
melunko@47
   458
#  include <stdint.h>
melunko@47
   459
# endif
melunko@47
   460
#endif
melunko@47
   461
#if HAVE_UNISTD_H
melunko@47
   462
# include <unistd.h>
melunko@47
   463
#endif"
melunko@47
   464
melunko@47
   465
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GST_PLUGINS_VERSION GST_PLUGINS_VERSION_RELEASE GST_PLUGINS_VERSION_MAJOR GST_PLUGINS_VERSION_MINOR GST_PLUGINS_VERSION_MICRO GST_PLUGINS_VERSION_NANO PACKAGE VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ACLOCAL_AMFLAGS CCAS CCASFLAGS ERROR_CFLAGS HAVE_CXX HAVE_PKGCONFIG PKG_CONFIG GST_CFLAGS GST_LIBS GST_MAJORMINOR GST_BASE_CFLAGS GST_BASE_LIBS GST_PLUGINS_BASE_CFLAGS GST_PLUGINS_BASE_LIBS plugindir GST_PLUGIN_LDFLAGS LIB@&t@OBJS LTLIBOBJS'
melunko@47
   466
ac_subst_files=''
melunko@47
   467
melunko@47
   468
# Initialize some variables set by options.
melunko@47
   469
ac_init_help=
melunko@47
   470
ac_init_version=false
melunko@47
   471
# The variables have the same names as the options, with
melunko@47
   472
# dashes changed to underlines.
melunko@47
   473
cache_file=/dev/null
melunko@47
   474
exec_prefix=NONE
melunko@47
   475
no_create=
melunko@47
   476
no_recursion=
melunko@47
   477
prefix=NONE
melunko@47
   478
program_prefix=NONE
melunko@47
   479
program_suffix=NONE
melunko@47
   480
program_transform_name=s,x,x,
melunko@47
   481
silent=
melunko@47
   482
site=
melunko@47
   483
srcdir=
melunko@47
   484
verbose=
melunko@47
   485
x_includes=NONE
melunko@47
   486
x_libraries=NONE
melunko@47
   487
melunko@47
   488
# Installation directory options.
melunko@47
   489
# These are left unexpanded so users can "make install exec_prefix=/foo"
melunko@47
   490
# and all the variables that are supposed to be based on exec_prefix
melunko@47
   491
# by default will actually change.
melunko@47
   492
# Use braces instead of parens because sh, perl, etc. also accept them.
melunko@47
   493
bindir='${exec_prefix}/bin'
melunko@47
   494
sbindir='${exec_prefix}/sbin'
melunko@47
   495
libexecdir='${exec_prefix}/libexec'
melunko@47
   496
datadir='${prefix}/share'
melunko@47
   497
sysconfdir='${prefix}/etc'
melunko@47
   498
sharedstatedir='${prefix}/com'
melunko@47
   499
localstatedir='${prefix}/var'
melunko@47
   500
libdir='${exec_prefix}/lib'
melunko@47
   501
includedir='${prefix}/include'
melunko@47
   502
oldincludedir='/usr/include'
melunko@47
   503
infodir='${prefix}/info'
melunko@47
   504
mandir='${prefix}/man'
melunko@47
   505
melunko@47
   506
ac_prev=
melunko@47
   507
for ac_option
melunko@47
   508
do
melunko@47
   509
  # If the previous option needs an argument, assign it.
melunko@47
   510
  if test -n "$ac_prev"; then
melunko@47
   511
    eval "$ac_prev=\$ac_option"
melunko@47
   512
    ac_prev=
melunko@47
   513
    continue
melunko@47
   514
  fi
melunko@47
   515
melunko@47
   516
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
melunko@47
   517
melunko@47
   518
  # Accept the important Cygnus configure options, so we can diagnose typos.
melunko@47
   519
melunko@47
   520
  case $ac_option in
melunko@47
   521
melunko@47
   522
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
melunko@47
   523
    ac_prev=bindir ;;
melunko@47
   524
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
melunko@47
   525
    bindir=$ac_optarg ;;
melunko@47
   526
melunko@47
   527
  -build | --build | --buil | --bui | --bu)
melunko@47
   528
    ac_prev=build_alias ;;
melunko@47
   529
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
melunko@47
   530
    build_alias=$ac_optarg ;;
melunko@47
   531
melunko@47
   532
  -cache-file | --cache-file | --cache-fil | --cache-fi \
melunko@47
   533
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
melunko@47
   534
    ac_prev=cache_file ;;
melunko@47
   535
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
melunko@47
   536
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
melunko@47
   537
    cache_file=$ac_optarg ;;
melunko@47
   538
melunko@47
   539
  --config-cache | -C)
melunko@47
   540
    cache_file=config.cache ;;
melunko@47
   541
melunko@47
   542
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
melunko@47
   543
    ac_prev=datadir ;;
melunko@47
   544
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
melunko@47
   545
  | --da=*)
melunko@47
   546
    datadir=$ac_optarg ;;
melunko@47
   547
melunko@47
   548
  -disable-* | --disable-*)
melunko@47
   549
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
melunko@47
   550
    # Reject names that are not valid shell variable names.
melunko@47
   551
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
melunko@47
   552
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
melunko@47
   553
   { (exit 1); exit 1; }; }
melunko@47
   554
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
melunko@47
   555
    eval "enable_$ac_feature=no" ;;
melunko@47
   556
melunko@47
   557
  -enable-* | --enable-*)
melunko@47
   558
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
melunko@47
   559
    # Reject names that are not valid shell variable names.
melunko@47
   560
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
melunko@47
   561
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
melunko@47
   562
   { (exit 1); exit 1; }; }
melunko@47
   563
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
melunko@47
   564
    case $ac_option in
melunko@47
   565
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
melunko@47
   566
      *) ac_optarg=yes ;;
melunko@47
   567
    esac
melunko@47
   568
    eval "enable_$ac_feature='$ac_optarg'" ;;
melunko@47
   569
melunko@47
   570
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
melunko@47
   571
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
melunko@47
   572
  | --exec | --exe | --ex)
melunko@47
   573
    ac_prev=exec_prefix ;;
melunko@47
   574
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
melunko@47
   575
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
melunko@47
   576
  | --exec=* | --exe=* | --ex=*)
melunko@47
   577
    exec_prefix=$ac_optarg ;;
melunko@47
   578
melunko@47
   579
  -gas | --gas | --ga | --g)
melunko@47
   580
    # Obsolete; use --with-gas.
melunko@47
   581
    with_gas=yes ;;
melunko@47
   582
melunko@47
   583
  -help | --help | --hel | --he | -h)
melunko@47
   584
    ac_init_help=long ;;
melunko@47
   585
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
melunko@47
   586
    ac_init_help=recursive ;;
melunko@47
   587
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
melunko@47
   588
    ac_init_help=short ;;
melunko@47
   589
melunko@47
   590
  -host | --host | --hos | --ho)
melunko@47
   591
    ac_prev=host_alias ;;
melunko@47
   592
  -host=* | --host=* | --hos=* | --ho=*)
melunko@47
   593
    host_alias=$ac_optarg ;;
melunko@47
   594
melunko@47
   595
  -includedir | --includedir | --includedi | --included | --include \
melunko@47
   596
  | --includ | --inclu | --incl | --inc)
melunko@47
   597
    ac_prev=includedir ;;
melunko@47
   598
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
melunko@47
   599
  | --includ=* | --inclu=* | --incl=* | --inc=*)
melunko@47
   600
    includedir=$ac_optarg ;;
melunko@47
   601
melunko@47
   602
  -infodir | --infodir | --infodi | --infod | --info | --inf)
melunko@47
   603
    ac_prev=infodir ;;
melunko@47
   604
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
melunko@47
   605
    infodir=$ac_optarg ;;
melunko@47
   606
melunko@47
   607
  -libdir | --libdir | --libdi | --libd)
melunko@47
   608
    ac_prev=libdir ;;
melunko@47
   609
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
melunko@47
   610
    libdir=$ac_optarg ;;
melunko@47
   611
melunko@47
   612
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
melunko@47
   613
  | --libexe | --libex | --libe)
melunko@47
   614
    ac_prev=libexecdir ;;
melunko@47
   615
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
melunko@47
   616
  | --libexe=* | --libex=* | --libe=*)
melunko@47
   617
    libexecdir=$ac_optarg ;;
melunko@47
   618
melunko@47
   619
  -localstatedir | --localstatedir | --localstatedi | --localstated \
melunko@47
   620
  | --localstate | --localstat | --localsta | --localst \
melunko@47
   621
  | --locals | --local | --loca | --loc | --lo)
melunko@47
   622
    ac_prev=localstatedir ;;
melunko@47
   623
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
melunko@47
   624
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
melunko@47
   625
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
melunko@47
   626
    localstatedir=$ac_optarg ;;
melunko@47
   627
melunko@47
   628
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
melunko@47
   629
    ac_prev=mandir ;;
melunko@47
   630
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
melunko@47
   631
    mandir=$ac_optarg ;;
melunko@47
   632
melunko@47
   633
  -nfp | --nfp | --nf)
melunko@47
   634
    # Obsolete; use --without-fp.
melunko@47
   635
    with_fp=no ;;
melunko@47
   636
melunko@47
   637
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
melunko@47
   638
  | --no-cr | --no-c | -n)
melunko@47
   639
    no_create=yes ;;
melunko@47
   640
melunko@47
   641
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
melunko@47
   642
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
melunko@47
   643
    no_recursion=yes ;;
melunko@47
   644
melunko@47
   645
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
melunko@47
   646
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
melunko@47
   647
  | --oldin | --oldi | --old | --ol | --o)
melunko@47
   648
    ac_prev=oldincludedir ;;
melunko@47
   649
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
melunko@47
   650
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
melunko@47
   651
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
melunko@47
   652
    oldincludedir=$ac_optarg ;;
melunko@47
   653
melunko@47
   654
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
melunko@47
   655
    ac_prev=prefix ;;
melunko@47
   656
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
melunko@47
   657
    prefix=$ac_optarg ;;
melunko@47
   658
melunko@47
   659
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
melunko@47
   660
  | --program-pre | --program-pr | --program-p)
melunko@47
   661
    ac_prev=program_prefix ;;
melunko@47
   662
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
melunko@47
   663
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
melunko@47
   664
    program_prefix=$ac_optarg ;;
melunko@47
   665
melunko@47
   666
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
melunko@47
   667
  | --program-suf | --program-su | --program-s)
melunko@47
   668
    ac_prev=program_suffix ;;
melunko@47
   669
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
melunko@47
   670
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
melunko@47
   671
    program_suffix=$ac_optarg ;;
melunko@47
   672
melunko@47
   673
  -program-transform-name | --program-transform-name \
melunko@47
   674
  | --program-transform-nam | --program-transform-na \
melunko@47
   675
  | --program-transform-n | --program-transform- \
melunko@47
   676
  | --program-transform | --program-transfor \
melunko@47
   677
  | --program-transfo | --program-transf \
melunko@47
   678
  | --program-trans | --program-tran \
melunko@47
   679
  | --progr-tra | --program-tr | --program-t)
melunko@47
   680
    ac_prev=program_transform_name ;;
melunko@47
   681
  -program-transform-name=* | --program-transform-name=* \
melunko@47
   682
  | --program-transform-nam=* | --program-transform-na=* \
melunko@47
   683
  | --program-transform-n=* | --program-transform-=* \
melunko@47
   684
  | --program-transform=* | --program-transfor=* \
melunko@47
   685
  | --program-transfo=* | --program-transf=* \
melunko@47
   686
  | --program-trans=* | --program-tran=* \
melunko@47
   687
  | --progr-tra=* | --program-tr=* | --program-t=*)
melunko@47
   688
    program_transform_name=$ac_optarg ;;
melunko@47
   689
melunko@47
   690
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
melunko@47
   691
  | -silent | --silent | --silen | --sile | --sil)
melunko@47
   692
    silent=yes ;;
melunko@47
   693
melunko@47
   694
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
melunko@47
   695
    ac_prev=sbindir ;;
melunko@47
   696
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
melunko@47
   697
  | --sbi=* | --sb=*)
melunko@47
   698
    sbindir=$ac_optarg ;;
melunko@47
   699
melunko@47
   700
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
melunko@47
   701
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
melunko@47
   702
  | --sharedst | --shareds | --shared | --share | --shar \
melunko@47
   703
  | --sha | --sh)
melunko@47
   704
    ac_prev=sharedstatedir ;;
melunko@47
   705
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
melunko@47
   706
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
melunko@47
   707
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
melunko@47
   708
  | --sha=* | --sh=*)
melunko@47
   709
    sharedstatedir=$ac_optarg ;;
melunko@47
   710
melunko@47
   711
  -site | --site | --sit)
melunko@47
   712
    ac_prev=site ;;
melunko@47
   713
  -site=* | --site=* | --sit=*)
melunko@47
   714
    site=$ac_optarg ;;
melunko@47
   715
melunko@47
   716
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
melunko@47
   717
    ac_prev=srcdir ;;
melunko@47
   718
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
melunko@47
   719
    srcdir=$ac_optarg ;;
melunko@47
   720
melunko@47
   721
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
melunko@47
   722
  | --syscon | --sysco | --sysc | --sys | --sy)
melunko@47
   723
    ac_prev=sysconfdir ;;
melunko@47
   724
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
melunko@47
   725
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
melunko@47
   726
    sysconfdir=$ac_optarg ;;
melunko@47
   727
melunko@47
   728
  -target | --target | --targe | --targ | --tar | --ta | --t)
melunko@47
   729
    ac_prev=target_alias ;;
melunko@47
   730
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
melunko@47
   731
    target_alias=$ac_optarg ;;
melunko@47
   732
melunko@47
   733
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
melunko@47
   734
    verbose=yes ;;
melunko@47
   735
melunko@47
   736
  -version | --version | --versio | --versi | --vers | -V)
melunko@47
   737
    ac_init_version=: ;;
melunko@47
   738
melunko@47
   739
  -with-* | --with-*)
melunko@47
   740
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
melunko@47
   741
    # Reject names that are not valid shell variable names.
melunko@47
   742
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
melunko@47
   743
      { echo "$as_me: error: invalid package name: $ac_package" >&2
melunko@47
   744
   { (exit 1); exit 1; }; }
melunko@47
   745
    ac_package=`echo $ac_package| sed 's/-/_/g'`
melunko@47
   746
    case $ac_option in
melunko@47
   747
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
melunko@47
   748
      *) ac_optarg=yes ;;
melunko@47
   749
    esac
melunko@47
   750
    eval "with_$ac_package='$ac_optarg'" ;;
melunko@47
   751
melunko@47
   752
  -without-* | --without-*)
melunko@47
   753
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
melunko@47
   754
    # Reject names that are not valid shell variable names.
melunko@47
   755
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
melunko@47
   756
      { echo "$as_me: error: invalid package name: $ac_package" >&2
melunko@47
   757
   { (exit 1); exit 1; }; }
melunko@47
   758
    ac_package=`echo $ac_package | sed 's/-/_/g'`
melunko@47
   759
    eval "with_$ac_package=no" ;;
melunko@47
   760
melunko@47
   761
  --x)
melunko@47
   762
    # Obsolete; use --with-x.
melunko@47
   763
    with_x=yes ;;
melunko@47
   764
melunko@47
   765
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
melunko@47
   766
  | --x-incl | --x-inc | --x-in | --x-i)
melunko@47
   767
    ac_prev=x_includes ;;
melunko@47
   768
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
melunko@47
   769
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
melunko@47
   770
    x_includes=$ac_optarg ;;
melunko@47
   771
melunko@47
   772
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
melunko@47
   773
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
melunko@47
   774
    ac_prev=x_libraries ;;
melunko@47
   775
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
melunko@47
   776
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
melunko@47
   777
    x_libraries=$ac_optarg ;;
melunko@47
   778
melunko@47
   779
  -*) { echo "$as_me: error: unrecognized option: $ac_option
melunko@47
   780
Try \`$0 --help' for more information." >&2
melunko@47
   781
   { (exit 1); exit 1; }; }
melunko@47
   782
    ;;
melunko@47
   783
melunko@47
   784
  *=*)
melunko@47
   785
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
melunko@47
   786
    # Reject names that are not valid shell variable names.
melunko@47
   787
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
melunko@47
   788
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
melunko@47
   789
   { (exit 1); exit 1; }; }
melunko@47
   790
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
melunko@47
   791
    eval "$ac_envvar='$ac_optarg'"
melunko@47
   792
    export $ac_envvar ;;
melunko@47
   793
melunko@47
   794
  *)
melunko@47
   795
    # FIXME: should be removed in autoconf 3.0.
melunko@47
   796
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
melunko@47
   797
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
melunko@47
   798
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
melunko@47
   799
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
melunko@47
   800
    ;;
melunko@47
   801
melunko@47
   802
  esac
melunko@47
   803
done
melunko@47
   804
melunko@47
   805
if test -n "$ac_prev"; then
melunko@47
   806
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
melunko@47
   807
  { echo "$as_me: error: missing argument to $ac_option" >&2
melunko@47
   808
   { (exit 1); exit 1; }; }
melunko@47
   809
fi
melunko@47
   810
melunko@47
   811
# Be sure to have absolute paths.
melunko@47
   812
for ac_var in exec_prefix prefix
melunko@47
   813
do
melunko@47
   814
  eval ac_val=$`echo $ac_var`
melunko@47
   815
  case $ac_val in
melunko@47
   816
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
melunko@47
   817
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
melunko@47
   818
   { (exit 1); exit 1; }; };;
melunko@47
   819
  esac
melunko@47
   820
done
melunko@47
   821
melunko@47
   822
# Be sure to have absolute paths.
melunko@47
   823
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
melunko@47
   824
	      localstatedir libdir includedir oldincludedir infodir mandir
melunko@47
   825
do
melunko@47
   826
  eval ac_val=$`echo $ac_var`
melunko@47
   827
  case $ac_val in
melunko@47
   828
    [\\/$]* | ?:[\\/]* ) ;;
melunko@47
   829
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
melunko@47
   830
   { (exit 1); exit 1; }; };;
melunko@47
   831
  esac
melunko@47
   832
done
melunko@47
   833
melunko@47
   834
# There might be people who depend on the old broken behavior: `$host'
melunko@47
   835
# used to hold the argument of --host etc.
melunko@47
   836
# FIXME: To remove some day.
melunko@47
   837
build=$build_alias
melunko@47
   838
host=$host_alias
melunko@47
   839
target=$target_alias
melunko@47
   840
melunko@47
   841
# FIXME: To remove some day.
melunko@47
   842
if test "x$host_alias" != x; then
melunko@47
   843
  if test "x$build_alias" = x; then
melunko@47
   844
    cross_compiling=maybe
melunko@47
   845
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
melunko@47
   846
    If a cross compiler is detected then cross compile mode will be used." >&2
melunko@47
   847
  elif test "x$build_alias" != "x$host_alias"; then
melunko@47
   848
    cross_compiling=yes
melunko@47
   849
  fi
melunko@47
   850
fi
melunko@47
   851
melunko@47
   852
ac_tool_prefix=
melunko@47
   853
test -n "$host_alias" && ac_tool_prefix=$host_alias-
melunko@47
   854
melunko@47
   855
test "$silent" = yes && exec 6>/dev/null
melunko@47
   856
melunko@47
   857
melunko@47
   858
# Find the source files, if location was not specified.
melunko@47
   859
if test -z "$srcdir"; then
melunko@47
   860
  ac_srcdir_defaulted=yes
melunko@47
   861
  # Try the directory containing this script, then its parent.
melunko@47
   862
  ac_confdir=`(dirname "$0") 2>/dev/null ||
melunko@47
   863
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
melunko@47
   864
	 X"$0" : 'X\(//\)[^/]' \| \
melunko@47
   865
	 X"$0" : 'X\(//\)$' \| \
melunko@47
   866
	 X"$0" : 'X\(/\)' \| \
melunko@47
   867
	 .     : '\(.\)' 2>/dev/null ||
melunko@47
   868
echo X"$0" |
melunko@47
   869
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
melunko@47
   870
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
melunko@47
   871
  	  /^X\(\/\/\)$/{ s//\1/; q; }
melunko@47
   872
  	  /^X\(\/\).*/{ s//\1/; q; }
melunko@47
   873
  	  s/.*/./; q'`
melunko@47
   874
  srcdir=$ac_confdir
melunko@47
   875
  if test ! -r $srcdir/$ac_unique_file; then
melunko@47
   876
    srcdir=..
melunko@47
   877
  fi
melunko@47
   878
else
melunko@47
   879
  ac_srcdir_defaulted=no
melunko@47
   880
fi
melunko@47
   881
if test ! -r $srcdir/$ac_unique_file; then
melunko@47
   882
  if test "$ac_srcdir_defaulted" = yes; then
melunko@47
   883
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
melunko@47
   884
   { (exit 1); exit 1; }; }
melunko@47
   885
  else
melunko@47
   886
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
melunko@47
   887
   { (exit 1); exit 1; }; }
melunko@47
   888
  fi
melunko@47
   889
fi
melunko@47
   890
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
melunko@47
   891
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
melunko@47
   892
   { (exit 1); exit 1; }; }
melunko@47
   893
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
melunko@47
   894
ac_env_build_alias_set=${build_alias+set}
melunko@47
   895
ac_env_build_alias_value=$build_alias
melunko@47
   896
ac_cv_env_build_alias_set=${build_alias+set}
melunko@47
   897
ac_cv_env_build_alias_value=$build_alias
melunko@47
   898
ac_env_host_alias_set=${host_alias+set}
melunko@47
   899
ac_env_host_alias_value=$host_alias
melunko@47
   900
ac_cv_env_host_alias_set=${host_alias+set}
melunko@47
   901
ac_cv_env_host_alias_value=$host_alias
melunko@47
   902
ac_env_target_alias_set=${target_alias+set}
melunko@47
   903
ac_env_target_alias_value=$target_alias
melunko@47
   904
ac_cv_env_target_alias_set=${target_alias+set}
melunko@47
   905
ac_cv_env_target_alias_value=$target_alias
melunko@47
   906
ac_env_CC_set=${CC+set}
melunko@47
   907
ac_env_CC_value=$CC
melunko@47
   908
ac_cv_env_CC_set=${CC+set}
melunko@47
   909
ac_cv_env_CC_value=$CC
melunko@47
   910
ac_env_CFLAGS_set=${CFLAGS+set}
melunko@47
   911
ac_env_CFLAGS_value=$CFLAGS
melunko@47
   912
ac_cv_env_CFLAGS_set=${CFLAGS+set}
melunko@47
   913
ac_cv_env_CFLAGS_value=$CFLAGS
melunko@47
   914
ac_env_LDFLAGS_set=${LDFLAGS+set}
melunko@47
   915
ac_env_LDFLAGS_value=$LDFLAGS
melunko@47
   916
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
melunko@47
   917
ac_cv_env_LDFLAGS_value=$LDFLAGS
melunko@47
   918
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
melunko@47
   919
ac_env_CPPFLAGS_value=$CPPFLAGS
melunko@47
   920
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
melunko@47
   921
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
melunko@47
   922
ac_env_CPP_set=${CPP+set}
melunko@47
   923
ac_env_CPP_value=$CPP
melunko@47
   924
ac_cv_env_CPP_set=${CPP+set}
melunko@47
   925
ac_cv_env_CPP_value=$CPP
melunko@47
   926
ac_env_CXX_set=${CXX+set}
melunko@47
   927
ac_env_CXX_value=$CXX
melunko@47
   928
ac_cv_env_CXX_set=${CXX+set}
melunko@47
   929
ac_cv_env_CXX_value=$CXX
melunko@47
   930
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
melunko@47
   931
ac_env_CXXFLAGS_value=$CXXFLAGS
melunko@47
   932
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
melunko@47
   933
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
melunko@47
   934
ac_env_CXXCPP_set=${CXXCPP+set}
melunko@47
   935
ac_env_CXXCPP_value=$CXXCPP
melunko@47
   936
ac_cv_env_CXXCPP_set=${CXXCPP+set}
melunko@47
   937
ac_cv_env_CXXCPP_value=$CXXCPP
melunko@47
   938
ac_env_F77_set=${F77+set}
melunko@47
   939
ac_env_F77_value=$F77
melunko@47
   940
ac_cv_env_F77_set=${F77+set}
melunko@47
   941
ac_cv_env_F77_value=$F77
melunko@47
   942
ac_env_FFLAGS_set=${FFLAGS+set}
melunko@47
   943
ac_env_FFLAGS_value=$FFLAGS
melunko@47
   944
ac_cv_env_FFLAGS_set=${FFLAGS+set}
melunko@47
   945
ac_cv_env_FFLAGS_value=$FFLAGS
melunko@47
   946
ac_env_CCAS_set=${CCAS+set}
melunko@47
   947
ac_env_CCAS_value=$CCAS
melunko@47
   948
ac_cv_env_CCAS_set=${CCAS+set}
melunko@47
   949
ac_cv_env_CCAS_value=$CCAS
melunko@47
   950
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
melunko@47
   951
ac_env_CCASFLAGS_value=$CCASFLAGS
melunko@47
   952
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
melunko@47
   953
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
melunko@47
   954
melunko@47
   955
#
melunko@47
   956
# Report the --help message.
melunko@47
   957
#
melunko@47
   958
if test "$ac_init_help" = "long"; then
melunko@47
   959
  # Omit some internal or obsolete options to make the list less imposing.
melunko@47
   960
  # This message is too long to be a string in the A/UX 3.1 sh.
melunko@47
   961
  cat <<_ACEOF
melunko@47
   962
\`configure' configures this package to adapt to many kinds of systems.
melunko@47
   963
melunko@47
   964
Usage: $0 [OPTION]... [VAR=VALUE]...
melunko@47
   965
melunko@47
   966
To assign environment variables (e.g., CC, CFLAGS...), specify them as
melunko@47
   967
VAR=VALUE.  See below for descriptions of some of the useful variables.
melunko@47
   968
melunko@47
   969
Defaults for the options are specified in brackets.
melunko@47
   970
melunko@47
   971
Configuration:
melunko@47
   972
  -h, --help              display this help and exit
melunko@47
   973
      --help=short        display options specific to this package
melunko@47
   974
      --help=recursive    display the short help of all the included packages
melunko@47
   975
  -V, --version           display version information and exit
melunko@47
   976
  -q, --quiet, --silent   do not print \`checking...' messages
melunko@47
   977
      --cache-file=FILE   cache test results in FILE [disabled]
melunko@47
   978
  -C, --config-cache      alias for \`--cache-file=config.cache'
melunko@47
   979
  -n, --no-create         do not create output files
melunko@47
   980
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
melunko@47
   981
melunko@47
   982
_ACEOF
melunko@47
   983
melunko@47
   984
  cat <<_ACEOF
melunko@47
   985
Installation directories:
melunko@47
   986
  --prefix=PREFIX         install architecture-independent files in PREFIX
melunko@47
   987
			  [$ac_default_prefix]
melunko@47
   988
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
melunko@47
   989
			  [PREFIX]
melunko@47
   990
melunko@47
   991
By default, \`make install' will install all the files in
melunko@47
   992
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
melunko@47
   993
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
melunko@47
   994
for instance \`--prefix=\$HOME'.
melunko@47
   995
melunko@47
   996
For better control, use the options below.
melunko@47
   997
melunko@47
   998
Fine tuning of the installation directories:
melunko@47
   999
  --bindir=DIR           user executables [EPREFIX/bin]
melunko@47
  1000
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
melunko@47
  1001
  --libexecdir=DIR       program executables [EPREFIX/libexec]
melunko@47
  1002
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
melunko@47
  1003
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
melunko@47
  1004
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
melunko@47
  1005
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
melunko@47
  1006
  --libdir=DIR           object code libraries [EPREFIX/lib]
melunko@47
  1007
  --includedir=DIR       C header files [PREFIX/include]
melunko@47
  1008
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
melunko@47
  1009
  --infodir=DIR          info documentation [PREFIX/info]
melunko@47
  1010
  --mandir=DIR           man documentation [PREFIX/man]
melunko@47
  1011
_ACEOF
melunko@47
  1012
melunko@47
  1013
  cat <<\_ACEOF
melunko@47
  1014
melunko@47
  1015
Program names:
melunko@47
  1016
  --program-prefix=PREFIX            prepend PREFIX to installed program names
melunko@47
  1017
  --program-suffix=SUFFIX            append SUFFIX to installed program names
melunko@47
  1018
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
melunko@47
  1019
melunko@47
  1020
System types:
melunko@47
  1021
  --build=BUILD     configure for building on BUILD [guessed]
melunko@47
  1022
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
melunko@47
  1023
  --target=TARGET   configure for building compilers for TARGET [HOST]
melunko@47
  1024
_ACEOF
melunko@47
  1025
fi
melunko@47
  1026
melunko@47
  1027
if test -n "$ac_init_help"; then
melunko@47
  1028
melunko@47
  1029
  cat <<\_ACEOF
melunko@47
  1030
melunko@47
  1031
Optional Features:
melunko@47
  1032
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
melunko@47
  1033
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
melunko@47
  1034
  --enable-static@<:@=PKGS@:>@ 
melunko@47
  1035
                          build static libraries @<:@default=no@:>@
melunko@47
  1036
  --enable-maintainer-mode  enable make rules and dependencies not useful
melunko@47
  1037
			  (and sometimes confusing) to the casual installer
melunko@47
  1038
  --enable-shared@<:@=PKGS@:>@ 
melunko@47
  1039
                          build shared libraries @<:@default=yes@:>@
melunko@47
  1040
  --enable-fast-install@<:@=PKGS@:>@ 
melunko@47
  1041
                          optimize for fast installation @<:@default=yes@:>@
melunko@47
  1042
  --disable-dependency-tracking  speeds up one-time build
melunko@47
  1043
  --enable-dependency-tracking   do not reject slow dependency extractors
melunko@47
  1044
  --disable-libtool-lock  avoid locking (might break parallel builds)
melunko@47
  1045
melunko@47
  1046
Optional Packages:
melunko@47
  1047
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
melunko@47
  1048
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
melunko@47
  1049
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
melunko@47
  1050
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
melunko@47
  1051
                          both@:>@
melunko@47
  1052
  --with-tags@<:@=TAGS@:>@ 
melunko@47
  1053
                          include additional configurations @<:@automatic@:>@
melunko@47
  1054
melunko@47
  1055
Some influential environment variables:
melunko@47
  1056
  CC          C compiler command
melunko@47
  1057
  CFLAGS      C compiler flags
melunko@47
  1058
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
melunko@47
  1059
              nonstandard directory <lib dir>
melunko@47
  1060
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
melunko@47
  1061
              headers in a nonstandard directory <include dir>
melunko@47
  1062
  CPP         C preprocessor
melunko@47
  1063
  CXX         C++ compiler command
melunko@47
  1064
  CXXFLAGS    C++ compiler flags
melunko@47
  1065
  CXXCPP      C++ preprocessor
melunko@47
  1066
  F77         Fortran 77 compiler command
melunko@47
  1067
  FFLAGS      Fortran 77 compiler flags
melunko@47
  1068
  CCAS        assembler compiler command (defaults to CC)
melunko@47
  1069
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
melunko@47
  1070
melunko@47
  1071
Use these variables to override the choices made by `configure' or to help
melunko@47
  1072
it to find libraries and programs with nonstandard names/locations.
melunko@47
  1073
melunko@47
  1074
_ACEOF
melunko@47
  1075
fi
melunko@47
  1076
melunko@47
  1077
if test "$ac_init_help" = "recursive"; then
melunko@47
  1078
  # If there are subdirs, report their specific --help.
melunko@47
  1079
  ac_popdir=`pwd`
melunko@47
  1080
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
melunko@47
  1081
    test -d $ac_dir || continue
melunko@47
  1082
    ac_builddir=.
melunko@47
  1083
melunko@47
  1084
if test "$ac_dir" != .; then
melunko@47
  1085
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
melunko@47
  1086
  # A "../" for each directory in $ac_dir_suffix.
melunko@47
  1087
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
melunko@47
  1088
else
melunko@47
  1089
  ac_dir_suffix= ac_top_builddir=
melunko@47
  1090
fi
melunko@47
  1091
melunko@47
  1092
case $srcdir in
melunko@47
  1093
  .)  # No --srcdir option.  We are building in place.
melunko@47
  1094
    ac_srcdir=.
melunko@47
  1095
    if test -z "$ac_top_builddir"; then
melunko@47
  1096
       ac_top_srcdir=.
melunko@47
  1097
    else
melunko@47
  1098
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
melunko@47
  1099
    fi ;;
melunko@47
  1100
  [\\/]* | ?:[\\/]* )  # Absolute path.
melunko@47
  1101
    ac_srcdir=$srcdir$ac_dir_suffix;
melunko@47
  1102
    ac_top_srcdir=$srcdir ;;
melunko@47
  1103
  *) # Relative path.
melunko@47
  1104
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
melunko@47
  1105
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
melunko@47
  1106
esac
melunko@47
  1107
melunko@47
  1108
# Do not use `cd foo && pwd` to compute absolute paths, because
melunko@47
  1109
# the directories may not exist.
melunko@47
  1110
case `pwd` in
melunko@47
  1111
.) ac_abs_builddir="$ac_dir";;
melunko@47
  1112
*)
melunko@47
  1113
  case "$ac_dir" in
melunko@47
  1114
  .) ac_abs_builddir=`pwd`;;
melunko@47
  1115
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
melunko@47
  1116
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
melunko@47
  1117
  esac;;
melunko@47
  1118
esac
melunko@47
  1119
case $ac_abs_builddir in
melunko@47
  1120
.) ac_abs_top_builddir=${ac_top_builddir}.;;
melunko@47
  1121
*)
melunko@47
  1122
  case ${ac_top_builddir}. in
melunko@47
  1123
  .) ac_abs_top_builddir=$ac_abs_builddir;;
melunko@47
  1124
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
melunko@47
  1125
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
melunko@47
  1126
  esac;;
melunko@47
  1127
esac
melunko@47
  1128
case $ac_abs_builddir in
melunko@47
  1129
.) ac_abs_srcdir=$ac_srcdir;;
melunko@47
  1130
*)
melunko@47
  1131
  case $ac_srcdir in
melunko@47
  1132
  .) ac_abs_srcdir=$ac_abs_builddir;;
melunko@47
  1133
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
melunko@47
  1134
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
melunko@47
  1135
  esac;;
melunko@47
  1136
esac
melunko@47
  1137
case $ac_abs_builddir in
melunko@47
  1138
.) ac_abs_top_srcdir=$ac_top_srcdir;;
melunko@47
  1139
*)
melunko@47
  1140
  case $ac_top_srcdir in
melunko@47
  1141
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
melunko@47
  1142
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
melunko@47
  1143
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
melunko@47
  1144
  esac;;
melunko@47
  1145
esac
melunko@47
  1146
melunko@47
  1147
    cd $ac_dir
melunko@47
  1148
    # Check for guested configure; otherwise get Cygnus style configure.
melunko@47
  1149
    if test -f $ac_srcdir/configure.gnu; then
melunko@47
  1150
      echo
melunko@47
  1151
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
melunko@47
  1152
    elif test -f $ac_srcdir/configure; then
melunko@47
  1153
      echo
melunko@47
  1154
      $SHELL $ac_srcdir/configure  --help=recursive
melunko@47
  1155
    elif test -f $ac_srcdir/configure.ac ||
melunko@47
  1156
	   test -f $ac_srcdir/configure.in; then
melunko@47
  1157
      echo
melunko@47
  1158
      $ac_configure --help
melunko@47
  1159
    else
melunko@47
  1160
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
melunko@47
  1161
    fi
melunko@47
  1162
    cd "$ac_popdir"
melunko@47
  1163
  done
melunko@47
  1164
fi
melunko@47
  1165
melunko@47
  1166
test -n "$ac_init_help" && exit 0
melunko@47
  1167
if $ac_init_version; then
melunko@47
  1168
  cat <<\_ACEOF
melunko@47
  1169
melunko@47
  1170
Copyright (C) 2003 Free Software Foundation, Inc.
melunko@47
  1171
This configure script is free software; the Free Software Foundation
melunko@47
  1172
gives unlimited permission to copy, distribute and modify it.
melunko@47
  1173
_ACEOF
melunko@47
  1174
  exit 0
melunko@47
  1175
fi
melunko@47
  1176
exec 5>config.log
melunko@47
  1177
cat >&5 <<_ACEOF
melunko@47
  1178
This file contains any messages produced by compilers while
melunko@47
  1179
running configure, to aid debugging if configure makes a mistake.
melunko@47
  1180
melunko@47
  1181
It was created by $as_me, which was
melunko@47
  1182
generated by GNU Autoconf 2.59.  Invocation command line was
melunko@47
  1183
melunko@47
  1184
  $ $0 $@
melunko@47
  1185
melunko@47
  1186
_ACEOF
melunko@47
  1187
{
melunko@47
  1188
cat <<_ASUNAME
melunko@47
  1189
@%:@@%:@ --------- @%:@@%:@
melunko@47
  1190
@%:@@%:@ Platform. @%:@@%:@
melunko@47
  1191
@%:@@%:@ --------- @%:@@%:@
melunko@47
  1192
melunko@47
  1193
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
melunko@47
  1194
uname -m = `(uname -m) 2>/dev/null || echo unknown`
melunko@47
  1195
uname -r = `(uname -r) 2>/dev/null || echo unknown`
melunko@47
  1196
uname -s = `(uname -s) 2>/dev/null || echo unknown`
melunko@47
  1197
uname -v = `(uname -v) 2>/dev/null || echo unknown`
melunko@47
  1198
melunko@47
  1199
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
melunko@47
  1200
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
melunko@47
  1201
melunko@47
  1202
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
melunko@47
  1203
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
melunko@47
  1204
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
melunko@47
  1205
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
melunko@47
  1206
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
melunko@47
  1207
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
melunko@47
  1208
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
melunko@47
  1209
melunko@47
  1210
_ASUNAME
melunko@47
  1211
melunko@47
  1212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  1213
for as_dir in $PATH
melunko@47
  1214
do
melunko@47
  1215
  IFS=$as_save_IFS
melunko@47
  1216
  test -z "$as_dir" && as_dir=.
melunko@47
  1217
  echo "PATH: $as_dir"
melunko@47
  1218
done
melunko@47
  1219
melunko@47
  1220
} >&5
melunko@47
  1221
melunko@47
  1222
cat >&5 <<_ACEOF
melunko@47
  1223
melunko@47
  1224
melunko@47
  1225
@%:@@%:@ ----------- @%:@@%:@
melunko@47
  1226
@%:@@%:@ Core tests. @%:@@%:@
melunko@47
  1227
@%:@@%:@ ----------- @%:@@%:@
melunko@47
  1228
melunko@47
  1229
_ACEOF
melunko@47
  1230
melunko@47
  1231
melunko@47
  1232
# Keep a trace of the command line.
melunko@47
  1233
# Strip out --no-create and --no-recursion so they do not pile up.
melunko@47
  1234
# Strip out --silent because we don't want to record it for future runs.
melunko@47
  1235
# Also quote any args containing shell meta-characters.
melunko@47
  1236
# Make two passes to allow for proper duplicate-argument suppression.
melunko@47
  1237
ac_configure_args=
melunko@47
  1238
ac_configure_args0=
melunko@47
  1239
ac_configure_args1=
melunko@47
  1240
ac_sep=
melunko@47
  1241
ac_must_keep_next=false
melunko@47
  1242
for ac_pass in 1 2
melunko@47
  1243
do
melunko@47
  1244
  for ac_arg
melunko@47
  1245
  do
melunko@47
  1246
    case $ac_arg in
melunko@47
  1247
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
melunko@47
  1248
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
melunko@47
  1249
    | -silent | --silent | --silen | --sile | --sil)
melunko@47
  1250
      continue ;;
melunko@47
  1251
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
melunko@47
  1252
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
melunko@47
  1253
    esac
melunko@47
  1254
    case $ac_pass in
melunko@47
  1255
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
melunko@47
  1256
    2)
melunko@47
  1257
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
melunko@47
  1258
      if test $ac_must_keep_next = true; then
melunko@47
  1259
	ac_must_keep_next=false # Got value, back to normal.
melunko@47
  1260
      else
melunko@47
  1261
	case $ac_arg in
melunko@47
  1262
	  *=* | --config-cache | -C | -disable-* | --disable-* \
melunko@47
  1263
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
melunko@47
  1264
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
melunko@47
  1265
	  | -with-* | --with-* | -without-* | --without-* | --x)
melunko@47
  1266
	    case "$ac_configure_args0 " in
melunko@47
  1267
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
melunko@47
  1268
	    esac
melunko@47
  1269
	    ;;
melunko@47
  1270
	  -* ) ac_must_keep_next=true ;;
melunko@47
  1271
	esac
melunko@47
  1272
      fi
melunko@47
  1273
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
melunko@47
  1274
      # Get rid of the leading space.
melunko@47
  1275
      ac_sep=" "
melunko@47
  1276
      ;;
melunko@47
  1277
    esac
melunko@47
  1278
  done
melunko@47
  1279
done
melunko@47
  1280
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
melunko@47
  1281
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
melunko@47
  1282
melunko@47
  1283
# When interrupted or exit'd, cleanup temporary files, and complete
melunko@47
  1284
# config.log.  We remove comments because anyway the quotes in there
melunko@47
  1285
# would cause problems or look ugly.
melunko@47
  1286
# WARNING: Be sure not to use single quotes in there, as some shells,
melunko@47
  1287
# such as our DU 5.0 friend, will then `close' the trap.
melunko@47
  1288
trap 'exit_status=$?
melunko@47
  1289
  # Save into config.log some information that might help in debugging.
melunko@47
  1290
  {
melunko@47
  1291
    echo
melunko@47
  1292
melunko@47
  1293
    cat <<\_ASBOX
melunko@47
  1294
@%:@@%:@ ---------------- @%:@@%:@
melunko@47
  1295
@%:@@%:@ Cache variables. @%:@@%:@
melunko@47
  1296
@%:@@%:@ ---------------- @%:@@%:@
melunko@47
  1297
_ASBOX
melunko@47
  1298
    echo
melunko@47
  1299
    # The following way of writing the cache mishandles newlines in values,
melunko@47
  1300
{
melunko@47
  1301
  (set) 2>&1 |
melunko@47
  1302
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
melunko@47
  1303
    *ac_space=\ *)
melunko@47
  1304
      sed -n \
melunko@47
  1305
	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
melunko@47
  1306
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
melunko@47
  1307
      ;;
melunko@47
  1308
    *)
melunko@47
  1309
      sed -n \
melunko@47
  1310
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
melunko@47
  1311
      ;;
melunko@47
  1312
    esac;
melunko@47
  1313
}
melunko@47
  1314
    echo
melunko@47
  1315
melunko@47
  1316
    cat <<\_ASBOX
melunko@47
  1317
@%:@@%:@ ----------------- @%:@@%:@
melunko@47
  1318
@%:@@%:@ Output variables. @%:@@%:@
melunko@47
  1319
@%:@@%:@ ----------------- @%:@@%:@
melunko@47
  1320
_ASBOX
melunko@47
  1321
    echo
melunko@47
  1322
    for ac_var in $ac_subst_vars
melunko@47
  1323
    do
melunko@47
  1324
      eval ac_val=$`echo $ac_var`
melunko@47
  1325
      echo "$ac_var='"'"'$ac_val'"'"'"
melunko@47
  1326
    done | sort
melunko@47
  1327
    echo
melunko@47
  1328
melunko@47
  1329
    if test -n "$ac_subst_files"; then
melunko@47
  1330
      cat <<\_ASBOX
melunko@47
  1331
@%:@@%:@ ------------- @%:@@%:@
melunko@47
  1332
@%:@@%:@ Output files. @%:@@%:@
melunko@47
  1333
@%:@@%:@ ------------- @%:@@%:@
melunko@47
  1334
_ASBOX
melunko@47
  1335
      echo
melunko@47
  1336
      for ac_var in $ac_subst_files
melunko@47
  1337
      do
melunko@47
  1338
	eval ac_val=$`echo $ac_var`
melunko@47
  1339
	echo "$ac_var='"'"'$ac_val'"'"'"
melunko@47
  1340
      done | sort
melunko@47
  1341
      echo
melunko@47
  1342
    fi
melunko@47
  1343
melunko@47
  1344
    if test -s confdefs.h; then
melunko@47
  1345
      cat <<\_ASBOX
melunko@47
  1346
@%:@@%:@ ----------- @%:@@%:@
melunko@47
  1347
@%:@@%:@ confdefs.h. @%:@@%:@
melunko@47
  1348
@%:@@%:@ ----------- @%:@@%:@
melunko@47
  1349
_ASBOX
melunko@47
  1350
      echo
melunko@47
  1351
      sed "/^$/d" confdefs.h | sort
melunko@47
  1352
      echo
melunko@47
  1353
    fi
melunko@47
  1354
    test "$ac_signal" != 0 &&
melunko@47
  1355
      echo "$as_me: caught signal $ac_signal"
melunko@47
  1356
    echo "$as_me: exit $exit_status"
melunko@47
  1357
  } >&5
melunko@47
  1358
  rm -f core *.core &&
melunko@47
  1359
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
melunko@47
  1360
    exit $exit_status
melunko@47
  1361
     ' 0
melunko@47
  1362
for ac_signal in 1 2 13 15; do
melunko@47
  1363
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
melunko@47
  1364
done
melunko@47
  1365
ac_signal=0
melunko@47
  1366
melunko@47
  1367
# confdefs.h avoids OS command line length limits that DEFS can exceed.
melunko@47
  1368
rm -rf conftest* confdefs.h
melunko@47
  1369
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
melunko@47
  1370
echo >confdefs.h
melunko@47
  1371
melunko@47
  1372
# Predefined preprocessor variables.
melunko@47
  1373
melunko@47
  1374
cat >>confdefs.h <<_ACEOF
melunko@47
  1375
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
melunko@47
  1376
_ACEOF
melunko@47
  1377
melunko@47
  1378
melunko@47
  1379
cat >>confdefs.h <<_ACEOF
melunko@47
  1380
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
melunko@47
  1381
_ACEOF
melunko@47
  1382
melunko@47
  1383
melunko@47
  1384
cat >>confdefs.h <<_ACEOF
melunko@47
  1385
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
melunko@47
  1386
_ACEOF
melunko@47
  1387
melunko@47
  1388
melunko@47
  1389
cat >>confdefs.h <<_ACEOF
melunko@47
  1390
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
melunko@47
  1391
_ACEOF
melunko@47
  1392
melunko@47
  1393
melunko@47
  1394
cat >>confdefs.h <<_ACEOF
melunko@47
  1395
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
melunko@47
  1396
_ACEOF
melunko@47
  1397
melunko@47
  1398
melunko@47
  1399
# Let the site file select an alternate cache file if it wants to.
melunko@47
  1400
# Prefer explicitly selected file to automatically selected ones.
melunko@47
  1401
if test -z "$CONFIG_SITE"; then
melunko@47
  1402
  if test "x$prefix" != xNONE; then
melunko@47
  1403
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
melunko@47
  1404
  else
melunko@47
  1405
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
melunko@47
  1406
  fi
melunko@47
  1407
fi
melunko@47
  1408
for ac_site_file in $CONFIG_SITE; do
melunko@47
  1409
  if test -r "$ac_site_file"; then
melunko@47
  1410
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
melunko@47
  1411
echo "$as_me: loading site script $ac_site_file" >&6;}
melunko@47
  1412
    sed 's/^/| /' "$ac_site_file" >&5
melunko@47
  1413
    . "$ac_site_file"
melunko@47
  1414
  fi
melunko@47
  1415
done
melunko@47
  1416
melunko@47
  1417
if test -r "$cache_file"; then
melunko@47
  1418
  # Some versions of bash will fail to source /dev/null (special
melunko@47
  1419
  # files actually), so we avoid doing that.
melunko@47
  1420
  if test -f "$cache_file"; then
melunko@47
  1421
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
melunko@47
  1422
echo "$as_me: loading cache $cache_file" >&6;}
melunko@47
  1423
    case $cache_file in
melunko@47
  1424
      [\\/]* | ?:[\\/]* ) . $cache_file;;
melunko@47
  1425
      *)                      . ./$cache_file;;
melunko@47
  1426
    esac
melunko@47
  1427
  fi
melunko@47
  1428
else
melunko@47
  1429
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
melunko@47
  1430
echo "$as_me: creating cache $cache_file" >&6;}
melunko@47
  1431
  >$cache_file
melunko@47
  1432
fi
melunko@47
  1433
melunko@47
  1434
# Check that the precious variables saved in the cache have kept the same
melunko@47
  1435
# value.
melunko@47
  1436
ac_cache_corrupted=false
melunko@47
  1437
for ac_var in `(set) 2>&1 |
melunko@47
  1438
	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
melunko@47
  1439
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
melunko@47
  1440
  eval ac_new_set=\$ac_env_${ac_var}_set
melunko@47
  1441
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
melunko@47
  1442
  eval ac_new_val="\$ac_env_${ac_var}_value"
melunko@47
  1443
  case $ac_old_set,$ac_new_set in
melunko@47
  1444
    set,)
melunko@47
  1445
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
melunko@47
  1446
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
melunko@47
  1447
      ac_cache_corrupted=: ;;
melunko@47
  1448
    ,set)
melunko@47
  1449
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
melunko@47
  1450
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
melunko@47
  1451
      ac_cache_corrupted=: ;;
melunko@47
  1452
    ,);;
melunko@47
  1453
    *)
melunko@47
  1454
      if test "x$ac_old_val" != "x$ac_new_val"; then
melunko@47
  1455
	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
melunko@47
  1456
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
melunko@47
  1457
	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
melunko@47
  1458
echo "$as_me:   former value:  $ac_old_val" >&2;}
melunko@47
  1459
	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
melunko@47
  1460
echo "$as_me:   current value: $ac_new_val" >&2;}
melunko@47
  1461
	ac_cache_corrupted=:
melunko@47
  1462
      fi;;
melunko@47
  1463
  esac
melunko@47
  1464
  # Pass precious variables to config.status.
melunko@47
  1465
  if test "$ac_new_set" = set; then
melunko@47
  1466
    case $ac_new_val in
melunko@47
  1467
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
melunko@47
  1468
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
melunko@47
  1469
    *) ac_arg=$ac_var=$ac_new_val ;;
melunko@47
  1470
    esac
melunko@47
  1471
    case " $ac_configure_args " in
melunko@47
  1472
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
melunko@47
  1473
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
melunko@47
  1474
    esac
melunko@47
  1475
  fi
melunko@47
  1476
done
melunko@47
  1477
if $ac_cache_corrupted; then
melunko@47
  1478
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
melunko@47
  1479
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
melunko@47
  1480
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
melunko@47
  1481
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
melunko@47
  1482
   { (exit 1); exit 1; }; }
melunko@47
  1483
fi
melunko@47
  1484
melunko@47
  1485
ac_ext=c
melunko@47
  1486
ac_cpp='$CPP $CPPFLAGS'
melunko@47
  1487
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  1488
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  1489
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
  1490
melunko@47
  1491
melunko@47
  1492
melunko@47
  1493
melunko@47
  1494
melunko@47
  1495
melunko@47
  1496
melunko@47
  1497
melunko@47
  1498
melunko@47
  1499
melunko@47
  1500
melunko@47
  1501
melunko@47
  1502
melunko@47
  1503
melunko@47
  1504
melunko@47
  1505
melunko@47
  1506
melunko@47
  1507
melunko@47
  1508
melunko@47
  1509
ac_aux_dir=
melunko@47
  1510
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
melunko@47
  1511
  if test -f $ac_dir/install-sh; then
melunko@47
  1512
    ac_aux_dir=$ac_dir
melunko@47
  1513
    ac_install_sh="$ac_aux_dir/install-sh -c"
melunko@47
  1514
    break
melunko@47
  1515
  elif test -f $ac_dir/install.sh; then
melunko@47
  1516
    ac_aux_dir=$ac_dir
melunko@47
  1517
    ac_install_sh="$ac_aux_dir/install.sh -c"
melunko@47
  1518
    break
melunko@47
  1519
  elif test -f $ac_dir/shtool; then
melunko@47
  1520
    ac_aux_dir=$ac_dir
melunko@47
  1521
    ac_install_sh="$ac_aux_dir/shtool install -c"
melunko@47
  1522
    break
melunko@47
  1523
  fi
melunko@47
  1524
done
melunko@47
  1525
if test -z "$ac_aux_dir"; then
melunko@47
  1526
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
melunko@47
  1527
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
melunko@47
  1528
   { (exit 1); exit 1; }; }
melunko@47
  1529
fi
melunko@47
  1530
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
melunko@47
  1531
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
melunko@47
  1532
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
melunko@47
  1533
melunko@47
  1534
# Make sure we can run config.sub.
melunko@47
  1535
$ac_config_sub sun4 >/dev/null 2>&1 ||
melunko@47
  1536
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
melunko@47
  1537
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
melunko@47
  1538
   { (exit 1); exit 1; }; }
melunko@47
  1539
melunko@47
  1540
echo "$as_me:$LINENO: checking build system type" >&5
melunko@47
  1541
echo $ECHO_N "checking build system type... $ECHO_C" >&6
melunko@47
  1542
if test "${ac_cv_build+set}" = set; then
melunko@47
  1543
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  1544
else
melunko@47
  1545
  ac_cv_build_alias=$build_alias
melunko@47
  1546
test -z "$ac_cv_build_alias" &&
melunko@47
  1547
  ac_cv_build_alias=`$ac_config_guess`
melunko@47
  1548
test -z "$ac_cv_build_alias" &&
melunko@47
  1549
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
melunko@47
  1550
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
melunko@47
  1551
   { (exit 1); exit 1; }; }
melunko@47
  1552
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
melunko@47
  1553
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
melunko@47
  1554
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
melunko@47
  1555
   { (exit 1); exit 1; }; }
melunko@47
  1556
melunko@47
  1557
fi
melunko@47
  1558
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
melunko@47
  1559
echo "${ECHO_T}$ac_cv_build" >&6
melunko@47
  1560
build=$ac_cv_build
melunko@47
  1561
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
melunko@47
  1562
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
melunko@47
  1563
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
melunko@47
  1564
melunko@47
  1565
melunko@47
  1566
echo "$as_me:$LINENO: checking host system type" >&5
melunko@47
  1567
echo $ECHO_N "checking host system type... $ECHO_C" >&6
melunko@47
  1568
if test "${ac_cv_host+set}" = set; then
melunko@47
  1569
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  1570
else
melunko@47
  1571
  ac_cv_host_alias=$host_alias
melunko@47
  1572
test -z "$ac_cv_host_alias" &&
melunko@47
  1573
  ac_cv_host_alias=$ac_cv_build_alias
melunko@47
  1574
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
melunko@47
  1575
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
melunko@47
  1576
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
melunko@47
  1577
   { (exit 1); exit 1; }; }
melunko@47
  1578
melunko@47
  1579
fi
melunko@47
  1580
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
melunko@47
  1581
echo "${ECHO_T}$ac_cv_host" >&6
melunko@47
  1582
host=$ac_cv_host
melunko@47
  1583
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
melunko@47
  1584
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
melunko@47
  1585
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
melunko@47
  1586
melunko@47
  1587
melunko@47
  1588
echo "$as_me:$LINENO: checking target system type" >&5
melunko@47
  1589
echo $ECHO_N "checking target system type... $ECHO_C" >&6
melunko@47
  1590
if test "${ac_cv_target+set}" = set; then
melunko@47
  1591
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  1592
else
melunko@47
  1593
  ac_cv_target_alias=$target_alias
melunko@47
  1594
test "x$ac_cv_target_alias" = "x" &&
melunko@47
  1595
  ac_cv_target_alias=$ac_cv_host_alias
melunko@47
  1596
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
melunko@47
  1597
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
melunko@47
  1598
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
melunko@47
  1599
   { (exit 1); exit 1; }; }
melunko@47
  1600
melunko@47
  1601
fi
melunko@47
  1602
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
melunko@47
  1603
echo "${ECHO_T}$ac_cv_target" >&6
melunko@47
  1604
target=$ac_cv_target
melunko@47
  1605
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
melunko@47
  1606
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
melunko@47
  1607
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
melunko@47
  1608
melunko@47
  1609
melunko@47
  1610
# The aliases save the names the user supplied, while $host etc.
melunko@47
  1611
# will get canonicalized.
melunko@47
  1612
test -n "$target_alias" &&
melunko@47
  1613
  test "$program_prefix$program_suffix$program_transform_name" = \
melunko@47
  1614
    NONENONEs,x,x, &&
melunko@47
  1615
  program_prefix=${target_alias}-
melunko@47
  1616
melunko@47
  1617
case m4 in
melunko@47
  1618
  [\\/]* | ?:[\\/]* ) ac_macro_dir=m4         ;;
melunko@47
  1619
  *)                      ac_macro_dir=$srcdir/m4 ;;
melunko@47
  1620
esac
melunko@47
  1621
if test -d "$ac_macro_dir"; then :
melunko@47
  1622
else
melunko@47
  1623
  { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5
melunko@47
  1624
echo "$as_me: error: cannot find macro directory \`m4'" >&2;}
melunko@47
  1625
   { (exit 1); exit 1; }; }
melunko@47
  1626
fi
melunko@47
  1627
melunko@47
  1628
# Check whether --enable-static or --disable-static was given.
melunko@47
  1629
if test "${enable_static+set}" = set; then
melunko@47
  1630
  enableval="$enable_static"
melunko@47
  1631
  p=${PACKAGE-default}
melunko@47
  1632
    case $enableval in
melunko@47
  1633
    yes) enable_static=yes ;;
melunko@47
  1634
    no) enable_static=no ;;
melunko@47
  1635
    *)
melunko@47
  1636
     enable_static=no
melunko@47
  1637
      # Look at the argument we got.  We use all the common list separators.
melunko@47
  1638
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
melunko@47
  1639
      for pkg in $enableval; do
melunko@47
  1640
	IFS="$lt_save_ifs"
melunko@47
  1641
	if test "X$pkg" = "X$p"; then
melunko@47
  1642
	  enable_static=yes
melunko@47
  1643
	fi
melunko@47
  1644
      done
melunko@47
  1645
      IFS="$lt_save_ifs"
melunko@47
  1646
      ;;
melunko@47
  1647
    esac
melunko@47
  1648
else
melunko@47
  1649
  enable_static=no
melunko@47
  1650
fi; 
melunko@47
  1651
melunko@47
  1652
melunko@47
  1653
melunko@47
  1654
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
melunko@47
  1655
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
melunko@47
  1656
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
melunko@47
  1657
if test "${enable_maintainer_mode+set}" = set; then
melunko@47
  1658
  enableval="$enable_maintainer_mode"
melunko@47
  1659
  USE_MAINTAINER_MODE=$enableval
melunko@47
  1660
else
melunko@47
  1661
  USE_MAINTAINER_MODE=no
melunko@47
  1662
fi; 
melunko@47
  1663
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
melunko@47
  1664
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
melunko@47
  1665
   
melunko@47
  1666
melunko@47
  1667
if test $USE_MAINTAINER_MODE = yes; then
melunko@47
  1668
  MAINTAINER_MODE_TRUE=
melunko@47
  1669
  MAINTAINER_MODE_FALSE='#'
melunko@47
  1670
else
melunko@47
  1671
  MAINTAINER_MODE_TRUE='#'
melunko@47
  1672
  MAINTAINER_MODE_FALSE=
melunko@47
  1673
fi
melunko@47
  1674
melunko@47
  1675
  MAINT=$MAINTAINER_MODE_TRUE
melunko@47
  1676
  
melunko@47
  1677
melunko@47
  1678
melunko@47
  1679
melunko@47
  1680
  PACKAGE=gst-plugins-nuvdemux
melunko@47
  1681
  GST_PLUGINS_VERSION_MAJOR=0
melunko@47
  1682
  GST_PLUGINS_VERSION_MINOR=10
melunko@47
  1683
  GST_PLUGINS_VERSION_MICRO=0
melunko@47
  1684
  NANO=1
melunko@47
  1685
  GST_PLUGINS_VERSION_NANO=$NANO
melunko@47
  1686
  if test "x$NANO" = "x" || test "x$NANO" = "x0";
melunko@47
  1687
  then
melunko@47
  1688
      { echo "$as_me:$LINENO: configuring gst-plugins-nuvdemux for release" >&5
melunko@47
  1689
echo "$as_me: configuring gst-plugins-nuvdemux for release" >&6;}
melunko@47
  1690
      VERSION=0.10.0
melunko@47
  1691
      GST_PLUGINS_VERSION_RELEASE=1
melunko@47
  1692
            GST_CVS="no"
melunko@47
  1693
  else
melunko@47
  1694
      { echo "$as_me:$LINENO: configuring gst-plugins-nuvdemux for development with nano $NANO" >&5
melunko@47
  1695
echo "$as_me: configuring gst-plugins-nuvdemux for development with nano $NANO" >&6;}
melunko@47
  1696
      VERSION=0.10.0.$NANO
melunko@47
  1697
      GST_PLUGINS_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
melunko@47
  1698
            GST_CVS="yes"
melunko@47
  1699
  fi
melunko@47
  1700
melunko@47
  1701
  GST_PLUGINS_VERSION=$VERSION
melunko@47
  1702
  
melunko@47
  1703
cat >>confdefs.h <<_ACEOF
melunko@47
  1704
@%:@define GST_PLUGINS_VERSION "$GST_PLUGINS_VERSION"
melunko@47
  1705
_ACEOF
melunko@47
  1706
melunko@47
  1707
  
melunko@47
  1708
  
melunko@47
  1709
cat >>confdefs.h <<_ACEOF
melunko@47
  1710
@%:@define GST_PLUGINS_VERSION_RELEASE "$GST_PLUGINS_VERSION_RELEASE"
melunko@47
  1711
_ACEOF
melunko@47
  1712
melunko@47
  1713
  
melunko@47
  1714
melunko@47
  1715
  
melunko@47
  1716
  
melunko@47
  1717
  
melunko@47
  1718
  
melunko@47
  1719
  
melunko@47
  1720
cat >>confdefs.h <<_ACEOF
melunko@47
  1721
@%:@define PACKAGE "$PACKAGE"
melunko@47
  1722
_ACEOF
melunko@47
  1723
melunko@47
  1724
  
melunko@47
  1725
  
melunko@47
  1726
cat >>confdefs.h <<_ACEOF
melunko@47
  1727
@%:@define VERSION "$VERSION"
melunko@47
  1728
_ACEOF
melunko@47
  1729
melunko@47
  1730
  
melunko@47
  1731
melunko@47
  1732
melunko@47
  1733
am__api_version="1.8"
melunko@47
  1734
# Find a good install program.  We prefer a C program (faster),
melunko@47
  1735
# so one script is as good as another.  But avoid the broken or
melunko@47
  1736
# incompatible versions:
melunko@47
  1737
# SysV /etc/install, /usr/sbin/install
melunko@47
  1738
# SunOS /usr/etc/install
melunko@47
  1739
# IRIX /sbin/install
melunko@47
  1740
# AIX /bin/install
melunko@47
  1741
# AmigaOS /C/install, which installs bootblocks on floppy discs
melunko@47
  1742
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
melunko@47
  1743
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
melunko@47
  1744
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
melunko@47
  1745
# OS/2's system install, which has a completely different semantic
melunko@47
  1746
# ./install, which can be erroneously created by make from ./install.sh.
melunko@47
  1747
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
melunko@47
  1748
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
melunko@47
  1749
if test -z "$INSTALL"; then
melunko@47
  1750
if test "${ac_cv_path_install+set}" = set; then
melunko@47
  1751
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  1752
else
melunko@47
  1753
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  1754
for as_dir in $PATH
melunko@47
  1755
do
melunko@47
  1756
  IFS=$as_save_IFS
melunko@47
  1757
  test -z "$as_dir" && as_dir=.
melunko@47
  1758
  # Account for people who put trailing slashes in PATH elements.
melunko@47
  1759
case $as_dir/ in
melunko@47
  1760
  ./ | .// | /cC/* | \
melunko@47
  1761
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
melunko@47
  1762
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
melunko@47
  1763
  /usr/ucb/* ) ;;
melunko@47
  1764
  *)
melunko@47
  1765
    # OSF1 and SCO ODT 3.0 have their own names for install.
melunko@47
  1766
    # Don't use installbsd from OSF since it installs stuff as root
melunko@47
  1767
    # by default.
melunko@47
  1768
    for ac_prog in ginstall scoinst install; do
melunko@47
  1769
      for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  1770
	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
melunko@47
  1771
	  if test $ac_prog = install &&
melunko@47
  1772
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
melunko@47
  1773
	    # AIX install.  It has an incompatible calling convention.
melunko@47
  1774
	    :
melunko@47
  1775
	  elif test $ac_prog = install &&
melunko@47
  1776
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
melunko@47
  1777
	    # program-specific install script used by HP pwplus--don't use.
melunko@47
  1778
	    :
melunko@47
  1779
	  else
melunko@47
  1780
	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
melunko@47
  1781
	    break 3
melunko@47
  1782
	  fi
melunko@47
  1783
	fi
melunko@47
  1784
      done
melunko@47
  1785
    done
melunko@47
  1786
    ;;
melunko@47
  1787
esac
melunko@47
  1788
done
melunko@47
  1789
melunko@47
  1790
melunko@47
  1791
fi
melunko@47
  1792
  if test "${ac_cv_path_install+set}" = set; then
melunko@47
  1793
    INSTALL=$ac_cv_path_install
melunko@47
  1794
  else
melunko@47
  1795
    # As a last resort, use the slow shell script.  We don't cache a
melunko@47
  1796
    # path for INSTALL within a source directory, because that will
melunko@47
  1797
    # break other packages using the cache if that directory is
melunko@47
  1798
    # removed, or if the path is relative.
melunko@47
  1799
    INSTALL=$ac_install_sh
melunko@47
  1800
  fi
melunko@47
  1801
fi
melunko@47
  1802
echo "$as_me:$LINENO: result: $INSTALL" >&5
melunko@47
  1803
echo "${ECHO_T}$INSTALL" >&6
melunko@47
  1804
melunko@47
  1805
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
melunko@47
  1806
# It thinks the first close brace ends the variable substitution.
melunko@47
  1807
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
melunko@47
  1808
melunko@47
  1809
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
melunko@47
  1810
melunko@47
  1811
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
melunko@47
  1812
melunko@47
  1813
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
melunko@47
  1814
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
melunko@47
  1815
# Just in case
melunko@47
  1816
sleep 1
melunko@47
  1817
echo timestamp > conftest.file
melunko@47
  1818
# Do `set' in a subshell so we don't clobber the current shell's
melunko@47
  1819
# arguments.  Must try -L first in case configure is actually a
melunko@47
  1820
# symlink; some systems play weird games with the mod time of symlinks
melunko@47
  1821
# (eg FreeBSD returns the mod time of the symlink's containing
melunko@47
  1822
# directory).
melunko@47
  1823
if (
melunko@47
  1824
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
melunko@47
  1825
   if test "$*" = "X"; then
melunko@47
  1826
      # -L didn't work.
melunko@47
  1827
      set X `ls -t $srcdir/configure conftest.file`
melunko@47
  1828
   fi
melunko@47
  1829
   rm -f conftest.file
melunko@47
  1830
   if test "$*" != "X $srcdir/configure conftest.file" \
melunko@47
  1831
      && test "$*" != "X conftest.file $srcdir/configure"; then
melunko@47
  1832
melunko@47
  1833
      # If neither matched, then we have a broken ls.  This can happen
melunko@47
  1834
      # if, for instance, CONFIG_SHELL is bash and it inherits a
melunko@47
  1835
      # broken ls alias from the environment.  This has actually
melunko@47
  1836
      # happened.  Such a system could not be considered "sane".
melunko@47
  1837
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
melunko@47
  1838
alias in your environment" >&5
melunko@47
  1839
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
melunko@47
  1840
alias in your environment" >&2;}
melunko@47
  1841
   { (exit 1); exit 1; }; }
melunko@47
  1842
   fi
melunko@47
  1843
melunko@47
  1844
   test "$2" = conftest.file
melunko@47
  1845
   )
melunko@47
  1846
then
melunko@47
  1847
   # Ok.
melunko@47
  1848
   :
melunko@47
  1849
else
melunko@47
  1850
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
melunko@47
  1851
Check your system clock" >&5
melunko@47
  1852
echo "$as_me: error: newly created file is older than distributed files!
melunko@47
  1853
Check your system clock" >&2;}
melunko@47
  1854
   { (exit 1); exit 1; }; }
melunko@47
  1855
fi
melunko@47
  1856
echo "$as_me:$LINENO: result: yes" >&5
melunko@47
  1857
echo "${ECHO_T}yes" >&6
melunko@47
  1858
test "$program_prefix" != NONE &&
melunko@47
  1859
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
melunko@47
  1860
# Use a double $ so make ignores it.
melunko@47
  1861
test "$program_suffix" != NONE &&
melunko@47
  1862
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
melunko@47
  1863
# Double any \ or $.  echo might interpret backslashes.
melunko@47
  1864
# By default was `s,x,x', remove it if useless.
melunko@47
  1865
cat <<\_ACEOF >conftest.sed
melunko@47
  1866
s/[\\$]/&&/g;s/;s,x,x,$//
melunko@47
  1867
_ACEOF
melunko@47
  1868
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
melunko@47
  1869
rm conftest.sed
melunko@47
  1870
melunko@47
  1871
# expand $ac_aux_dir to an absolute path
melunko@47
  1872
am_aux_dir=`cd $ac_aux_dir && pwd`
melunko@47
  1873
melunko@47
  1874
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
melunko@47
  1875
# Use eval to expand $SHELL
melunko@47
  1876
if eval "$MISSING --run true"; then
melunko@47
  1877
  am_missing_run="$MISSING --run "
melunko@47
  1878
else
melunko@47
  1879
  am_missing_run=
melunko@47
  1880
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
melunko@47
  1881
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
melunko@47
  1882
fi
melunko@47
  1883
melunko@47
  1884
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
melunko@47
  1885
  # Keeping the `.' argument allows $(mkdir_p) to be used without
melunko@47
  1886
  # argument.  Indeed, we sometimes output rules like
melunko@47
  1887
  #   $(mkdir_p) $(somedir)
melunko@47
  1888
  # where $(somedir) is conditionally defined.
melunko@47
  1889
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
melunko@47
  1890
  # expensive solution, as it forces Make to start a sub-shell.)
melunko@47
  1891
  mkdir_p='mkdir -p -- .'
melunko@47
  1892
else
melunko@47
  1893
  # On NextStep and OpenStep, the `mkdir' command does not
melunko@47
  1894
  # recognize any option.  It will interpret all options as
melunko@47
  1895
  # directories to create, and then abort because `.' already
melunko@47
  1896
  # exists.
melunko@47
  1897
  for d in ./-p ./--version;
melunko@47
  1898
  do
melunko@47
  1899
    test -d $d && rmdir $d
melunko@47
  1900
  done
melunko@47
  1901
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
melunko@47
  1902
  if test -f "$ac_aux_dir/mkinstalldirs"; then
melunko@47
  1903
    mkdir_p='$(mkinstalldirs)'
melunko@47
  1904
  else
melunko@47
  1905
    mkdir_p='$(install_sh) -d'
melunko@47
  1906
  fi
melunko@47
  1907
fi
melunko@47
  1908
melunko@47
  1909
for ac_prog in gawk mawk nawk awk
melunko@47
  1910
do
melunko@47
  1911
  # Extract the first word of "$ac_prog", so it can be a program name with args.
melunko@47
  1912
set dummy $ac_prog; ac_word=$2
melunko@47
  1913
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  1914
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  1915
if test "${ac_cv_prog_AWK+set}" = set; then
melunko@47
  1916
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  1917
else
melunko@47
  1918
  if test -n "$AWK"; then
melunko@47
  1919
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
melunko@47
  1920
else
melunko@47
  1921
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  1922
for as_dir in $PATH
melunko@47
  1923
do
melunko@47
  1924
  IFS=$as_save_IFS
melunko@47
  1925
  test -z "$as_dir" && as_dir=.
melunko@47
  1926
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  1927
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  1928
    ac_cv_prog_AWK="$ac_prog"
melunko@47
  1929
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  1930
    break 2
melunko@47
  1931
  fi
melunko@47
  1932
done
melunko@47
  1933
done
melunko@47
  1934
melunko@47
  1935
fi
melunko@47
  1936
fi
melunko@47
  1937
AWK=$ac_cv_prog_AWK
melunko@47
  1938
if test -n "$AWK"; then
melunko@47
  1939
  echo "$as_me:$LINENO: result: $AWK" >&5
melunko@47
  1940
echo "${ECHO_T}$AWK" >&6
melunko@47
  1941
else
melunko@47
  1942
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  1943
echo "${ECHO_T}no" >&6
melunko@47
  1944
fi
melunko@47
  1945
melunko@47
  1946
  test -n "$AWK" && break
melunko@47
  1947
done
melunko@47
  1948
melunko@47
  1949
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
melunko@47
  1950
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
melunko@47
  1951
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
melunko@47
  1952
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
melunko@47
  1953
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  1954
else
melunko@47
  1955
  cat >conftest.make <<\_ACEOF
melunko@47
  1956
all:
melunko@47
  1957
	@echo 'ac_maketemp="$(MAKE)"'
melunko@47
  1958
_ACEOF
melunko@47
  1959
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
melunko@47
  1960
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
melunko@47
  1961
if test -n "$ac_maketemp"; then
melunko@47
  1962
  eval ac_cv_prog_make_${ac_make}_set=yes
melunko@47
  1963
else
melunko@47
  1964
  eval ac_cv_prog_make_${ac_make}_set=no
melunko@47
  1965
fi
melunko@47
  1966
rm -f conftest.make
melunko@47
  1967
fi
melunko@47
  1968
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
melunko@47
  1969
  echo "$as_me:$LINENO: result: yes" >&5
melunko@47
  1970
echo "${ECHO_T}yes" >&6
melunko@47
  1971
  SET_MAKE=
melunko@47
  1972
else
melunko@47
  1973
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  1974
echo "${ECHO_T}no" >&6
melunko@47
  1975
  SET_MAKE="MAKE=${MAKE-make}"
melunko@47
  1976
fi
melunko@47
  1977
melunko@47
  1978
rm -rf .tst 2>/dev/null
melunko@47
  1979
mkdir .tst 2>/dev/null
melunko@47
  1980
if test -d .tst; then
melunko@47
  1981
  am__leading_dot=.
melunko@47
  1982
else
melunko@47
  1983
  am__leading_dot=_
melunko@47
  1984
fi
melunko@47
  1985
rmdir .tst 2>/dev/null
melunko@47
  1986
melunko@47
  1987
# test to see if srcdir already configured
melunko@47
  1988
if test "`cd $srcdir && pwd`" != "`pwd`" &&
melunko@47
  1989
   test -f $srcdir/config.status; then
melunko@47
  1990
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
melunko@47
  1991
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
melunko@47
  1992
   { (exit 1); exit 1; }; }
melunko@47
  1993
fi
melunko@47
  1994
melunko@47
  1995
# test whether we have cygpath
melunko@47
  1996
if test -z "$CYGPATH_W"; then
melunko@47
  1997
  if (cygpath --version) >/dev/null 2>/dev/null; then
melunko@47
  1998
    CYGPATH_W='cygpath -w'
melunko@47
  1999
  else
melunko@47
  2000
    CYGPATH_W=echo
melunko@47
  2001
  fi
melunko@47
  2002
fi
melunko@47
  2003
melunko@47
  2004
melunko@47
  2005
# Define the identity of the package.
melunko@47
  2006
 PACKAGE=$PACKAGE
melunko@47
  2007
 VERSION=$VERSION
melunko@47
  2008
melunko@47
  2009
melunko@47
  2010
cat >>confdefs.h <<_ACEOF
melunko@47
  2011
@%:@define PACKAGE "$PACKAGE"
melunko@47
  2012
_ACEOF
melunko@47
  2013
melunko@47
  2014
 
melunko@47
  2015
cat >>confdefs.h <<_ACEOF
melunko@47
  2016
@%:@define VERSION "$VERSION"
melunko@47
  2017
_ACEOF
melunko@47
  2018
melunko@47
  2019
# Some tools Automake needs.
melunko@47
  2020
melunko@47
  2021
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
melunko@47
  2022
melunko@47
  2023
melunko@47
  2024
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
melunko@47
  2025
melunko@47
  2026
melunko@47
  2027
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
melunko@47
  2028
melunko@47
  2029
melunko@47
  2030
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
melunko@47
  2031
melunko@47
  2032
melunko@47
  2033
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
melunko@47
  2034
melunko@47
  2035
melunko@47
  2036
AMTAR=${AMTAR-"${am_missing_run}tar"}
melunko@47
  2037
melunko@47
  2038
install_sh=${install_sh-"$am_aux_dir/install-sh"}
melunko@47
  2039
melunko@47
  2040
# Installed binaries are usually stripped using `strip' when the user
melunko@47
  2041
# run `make install-strip'.  However `strip' might not be the right
melunko@47
  2042
# tool to use in cross-compilation environments, therefore Automake
melunko@47
  2043
# will honor the `STRIP' environment variable to overrule this program.
melunko@47
  2044
if test "$cross_compiling" != no; then
melunko@47
  2045
  if test -n "$ac_tool_prefix"; then
melunko@47
  2046
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
melunko@47
  2047
set dummy ${ac_tool_prefix}strip; ac_word=$2
melunko@47
  2048
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  2049
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  2050
if test "${ac_cv_prog_STRIP+set}" = set; then
melunko@47
  2051
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  2052
else
melunko@47
  2053
  if test -n "$STRIP"; then
melunko@47
  2054
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
melunko@47
  2055
else
melunko@47
  2056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  2057
for as_dir in $PATH
melunko@47
  2058
do
melunko@47
  2059
  IFS=$as_save_IFS
melunko@47
  2060
  test -z "$as_dir" && as_dir=.
melunko@47
  2061
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  2062
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  2063
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
melunko@47
  2064
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  2065
    break 2
melunko@47
  2066
  fi
melunko@47
  2067
done
melunko@47
  2068
done
melunko@47
  2069
melunko@47
  2070
fi
melunko@47
  2071
fi
melunko@47
  2072
STRIP=$ac_cv_prog_STRIP
melunko@47
  2073
if test -n "$STRIP"; then
melunko@47
  2074
  echo "$as_me:$LINENO: result: $STRIP" >&5
melunko@47
  2075
echo "${ECHO_T}$STRIP" >&6
melunko@47
  2076
else
melunko@47
  2077
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  2078
echo "${ECHO_T}no" >&6
melunko@47
  2079
fi
melunko@47
  2080
melunko@47
  2081
fi
melunko@47
  2082
if test -z "$ac_cv_prog_STRIP"; then
melunko@47
  2083
  ac_ct_STRIP=$STRIP
melunko@47
  2084
  # Extract the first word of "strip", so it can be a program name with args.
melunko@47
  2085
set dummy strip; ac_word=$2
melunko@47
  2086
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  2087
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  2088
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
melunko@47
  2089
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  2090
else
melunko@47
  2091
  if test -n "$ac_ct_STRIP"; then
melunko@47
  2092
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
melunko@47
  2093
else
melunko@47
  2094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  2095
for as_dir in $PATH
melunko@47
  2096
do
melunko@47
  2097
  IFS=$as_save_IFS
melunko@47
  2098
  test -z "$as_dir" && as_dir=.
melunko@47
  2099
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  2100
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  2101
    ac_cv_prog_ac_ct_STRIP="strip"
melunko@47
  2102
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  2103
    break 2
melunko@47
  2104
  fi
melunko@47
  2105
done
melunko@47
  2106
done
melunko@47
  2107
melunko@47
  2108
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
melunko@47
  2109
fi
melunko@47
  2110
fi
melunko@47
  2111
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
melunko@47
  2112
if test -n "$ac_ct_STRIP"; then
melunko@47
  2113
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
melunko@47
  2114
echo "${ECHO_T}$ac_ct_STRIP" >&6
melunko@47
  2115
else
melunko@47
  2116
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  2117
echo "${ECHO_T}no" >&6
melunko@47
  2118
fi
melunko@47
  2119
melunko@47
  2120
  STRIP=$ac_ct_STRIP
melunko@47
  2121
else
melunko@47
  2122
  STRIP="$ac_cv_prog_STRIP"
melunko@47
  2123
fi
melunko@47
  2124
melunko@47
  2125
fi
melunko@47
  2126
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
melunko@47
  2127
melunko@47
  2128
# We need awk for the "check" target.  The system "awk" is bad on
melunko@47
  2129
# some platforms.
melunko@47
  2130
melunko@47
  2131
melunko@47
  2132
melunko@47
  2133
melunko@47
  2134
# Check whether --enable-shared or --disable-shared was given.
melunko@47
  2135
if test "${enable_shared+set}" = set; then
melunko@47
  2136
  enableval="$enable_shared"
melunko@47
  2137
  p=${PACKAGE-default}
melunko@47
  2138
    case $enableval in
melunko@47
  2139
    yes) enable_shared=yes ;;
melunko@47
  2140
    no) enable_shared=no ;;
melunko@47
  2141
    *)
melunko@47
  2142
      enable_shared=no
melunko@47
  2143
      # Look at the argument we got.  We use all the common list separators.
melunko@47
  2144
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
melunko@47
  2145
      for pkg in $enableval; do
melunko@47
  2146
	IFS="$lt_save_ifs"
melunko@47
  2147
	if test "X$pkg" = "X$p"; then
melunko@47
  2148
	  enable_shared=yes
melunko@47
  2149
	fi
melunko@47
  2150
      done
melunko@47
  2151
      IFS="$lt_save_ifs"
melunko@47
  2152
      ;;
melunko@47
  2153
    esac
melunko@47
  2154
else
melunko@47
  2155
  enable_shared=yes
melunko@47
  2156
fi; 
melunko@47
  2157
melunko@47
  2158
# Check whether --enable-fast-install or --disable-fast-install was given.
melunko@47
  2159
if test "${enable_fast_install+set}" = set; then
melunko@47
  2160
  enableval="$enable_fast_install"
melunko@47
  2161
  p=${PACKAGE-default}
melunko@47
  2162
    case $enableval in
melunko@47
  2163
    yes) enable_fast_install=yes ;;
melunko@47
  2164
    no) enable_fast_install=no ;;
melunko@47
  2165
    *)
melunko@47
  2166
      enable_fast_install=no
melunko@47
  2167
      # Look at the argument we got.  We use all the common list separators.
melunko@47
  2168
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
melunko@47
  2169
      for pkg in $enableval; do
melunko@47
  2170
	IFS="$lt_save_ifs"
melunko@47
  2171
	if test "X$pkg" = "X$p"; then
melunko@47
  2172
	  enable_fast_install=yes
melunko@47
  2173
	fi
melunko@47
  2174
      done
melunko@47
  2175
      IFS="$lt_save_ifs"
melunko@47
  2176
      ;;
melunko@47
  2177
    esac
melunko@47
  2178
else
melunko@47
  2179
  enable_fast_install=yes
melunko@47
  2180
fi; 
melunko@47
  2181
melunko@47
  2182
DEPDIR="${am__leading_dot}deps"
melunko@47
  2183
melunko@47
  2184
          ac_config_commands="$ac_config_commands depfiles"
melunko@47
  2185
melunko@47
  2186
melunko@47
  2187
am_make=${MAKE-make}
melunko@47
  2188
cat > confinc << 'END'
melunko@47
  2189
am__doit:
melunko@47
  2190
	@echo done
melunko@47
  2191
.PHONY: am__doit
melunko@47
  2192
END
melunko@47
  2193
# If we don't find an include directive, just comment out the code.
melunko@47
  2194
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
melunko@47
  2195
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
melunko@47
  2196
am__include="#"
melunko@47
  2197
am__quote=
melunko@47
  2198
_am_result=none
melunko@47
  2199
# First try GNU make style include.
melunko@47
  2200
echo "include confinc" > confmf
melunko@47
  2201
# We grep out `Entering directory' and `Leaving directory'
melunko@47
  2202
# messages which can occur if `w' ends up in MAKEFLAGS.
melunko@47
  2203
# In particular we don't look at `^make:' because GNU make might
melunko@47
  2204
# be invoked under some other name (usually "gmake"), in which
melunko@47
  2205
# case it prints its new name instead of `make'.
melunko@47
  2206
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
melunko@47
  2207
   am__include=include
melunko@47
  2208
   am__quote=
melunko@47
  2209
   _am_result=GNU
melunko@47
  2210
fi
melunko@47
  2211
# Now try BSD make style include.
melunko@47
  2212
if test "$am__include" = "#"; then
melunko@47
  2213
   echo '.include "confinc"' > confmf
melunko@47
  2214
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
melunko@47
  2215
      am__include=.include
melunko@47
  2216
      am__quote="\""
melunko@47
  2217
      _am_result=BSD
melunko@47
  2218
   fi
melunko@47
  2219
fi
melunko@47
  2220
melunko@47
  2221
melunko@47
  2222
echo "$as_me:$LINENO: result: $_am_result" >&5
melunko@47
  2223
echo "${ECHO_T}$_am_result" >&6
melunko@47
  2224
rm -f confinc confmf
melunko@47
  2225
melunko@47
  2226
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
melunko@47
  2227
if test "${enable_dependency_tracking+set}" = set; then
melunko@47
  2228
  enableval="$enable_dependency_tracking"
melunko@47
  2229
  
melunko@47
  2230
fi; 
melunko@47
  2231
if test "x$enable_dependency_tracking" != xno; then
melunko@47
  2232
  am_depcomp="$ac_aux_dir/depcomp"
melunko@47
  2233
  AMDEPBACKSLASH='\'
melunko@47
  2234
fi
melunko@47
  2235
 
melunko@47
  2236
melunko@47
  2237
if test "x$enable_dependency_tracking" != xno; then
melunko@47
  2238
  AMDEP_TRUE=
melunko@47
  2239
  AMDEP_FALSE='#'
melunko@47
  2240
else
melunko@47
  2241
  AMDEP_TRUE='#'
melunko@47
  2242
  AMDEP_FALSE=
melunko@47
  2243
fi
melunko@47
  2244
melunko@47
  2245
melunko@47
  2246
melunko@47
  2247
ac_ext=c
melunko@47
  2248
ac_cpp='$CPP $CPPFLAGS'
melunko@47
  2249
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  2250
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  2251
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
  2252
if test -n "$ac_tool_prefix"; then
melunko@47
  2253
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
melunko@47
  2254
set dummy ${ac_tool_prefix}gcc; ac_word=$2
melunko@47
  2255
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  2256
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  2257
if test "${ac_cv_prog_CC+set}" = set; then
melunko@47
  2258
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  2259
else
melunko@47
  2260
  if test -n "$CC"; then
melunko@47
  2261
  ac_cv_prog_CC="$CC" # Let the user override the test.
melunko@47
  2262
else
melunko@47
  2263
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  2264
for as_dir in $PATH
melunko@47
  2265
do
melunko@47
  2266
  IFS=$as_save_IFS
melunko@47
  2267
  test -z "$as_dir" && as_dir=.
melunko@47
  2268
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  2269
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  2270
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
melunko@47
  2271
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  2272
    break 2
melunko@47
  2273
  fi
melunko@47
  2274
done
melunko@47
  2275
done
melunko@47
  2276
melunko@47
  2277
fi
melunko@47
  2278
fi
melunko@47
  2279
CC=$ac_cv_prog_CC
melunko@47
  2280
if test -n "$CC"; then
melunko@47
  2281
  echo "$as_me:$LINENO: result: $CC" >&5
melunko@47
  2282
echo "${ECHO_T}$CC" >&6
melunko@47
  2283
else
melunko@47
  2284
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  2285
echo "${ECHO_T}no" >&6
melunko@47
  2286
fi
melunko@47
  2287
melunko@47
  2288
fi
melunko@47
  2289
if test -z "$ac_cv_prog_CC"; then
melunko@47
  2290
  ac_ct_CC=$CC
melunko@47
  2291
  # Extract the first word of "gcc", so it can be a program name with args.
melunko@47
  2292
set dummy gcc; ac_word=$2
melunko@47
  2293
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  2294
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  2295
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
melunko@47
  2296
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  2297
else
melunko@47
  2298
  if test -n "$ac_ct_CC"; then
melunko@47
  2299
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
melunko@47
  2300
else
melunko@47
  2301
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  2302
for as_dir in $PATH
melunko@47
  2303
do
melunko@47
  2304
  IFS=$as_save_IFS
melunko@47
  2305
  test -z "$as_dir" && as_dir=.
melunko@47
  2306
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  2307
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  2308
    ac_cv_prog_ac_ct_CC="gcc"
melunko@47
  2309
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  2310
    break 2
melunko@47
  2311
  fi
melunko@47
  2312
done
melunko@47
  2313
done
melunko@47
  2314
melunko@47
  2315
fi
melunko@47
  2316
fi
melunko@47
  2317
ac_ct_CC=$ac_cv_prog_ac_ct_CC
melunko@47
  2318
if test -n "$ac_ct_CC"; then
melunko@47
  2319
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
melunko@47
  2320
echo "${ECHO_T}$ac_ct_CC" >&6
melunko@47
  2321
else
melunko@47
  2322
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  2323
echo "${ECHO_T}no" >&6
melunko@47
  2324
fi
melunko@47
  2325
melunko@47
  2326
  CC=$ac_ct_CC
melunko@47
  2327
else
melunko@47
  2328
  CC="$ac_cv_prog_CC"
melunko@47
  2329
fi
melunko@47
  2330
melunko@47
  2331
if test -z "$CC"; then
melunko@47
  2332
  if test -n "$ac_tool_prefix"; then
melunko@47
  2333
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
melunko@47
  2334
set dummy ${ac_tool_prefix}cc; ac_word=$2
melunko@47
  2335
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  2336
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  2337
if test "${ac_cv_prog_CC+set}" = set; then
melunko@47
  2338
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  2339
else
melunko@47
  2340
  if test -n "$CC"; then
melunko@47
  2341
  ac_cv_prog_CC="$CC" # Let the user override the test.
melunko@47
  2342
else
melunko@47
  2343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  2344
for as_dir in $PATH
melunko@47
  2345
do
melunko@47
  2346
  IFS=$as_save_IFS
melunko@47
  2347
  test -z "$as_dir" && as_dir=.
melunko@47
  2348
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  2349
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  2350
    ac_cv_prog_CC="${ac_tool_prefix}cc"
melunko@47
  2351
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  2352
    break 2
melunko@47
  2353
  fi
melunko@47
  2354
done
melunko@47
  2355
done
melunko@47
  2356
melunko@47
  2357
fi
melunko@47
  2358
fi
melunko@47
  2359
CC=$ac_cv_prog_CC
melunko@47
  2360
if test -n "$CC"; then
melunko@47
  2361
  echo "$as_me:$LINENO: result: $CC" >&5
melunko@47
  2362
echo "${ECHO_T}$CC" >&6
melunko@47
  2363
else
melunko@47
  2364
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  2365
echo "${ECHO_T}no" >&6
melunko@47
  2366
fi
melunko@47
  2367
melunko@47
  2368
fi
melunko@47
  2369
if test -z "$ac_cv_prog_CC"; then
melunko@47
  2370
  ac_ct_CC=$CC
melunko@47
  2371
  # Extract the first word of "cc", so it can be a program name with args.
melunko@47
  2372
set dummy cc; ac_word=$2
melunko@47
  2373
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  2374
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  2375
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
melunko@47
  2376
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  2377
else
melunko@47
  2378
  if test -n "$ac_ct_CC"; then
melunko@47
  2379
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
melunko@47
  2380
else
melunko@47
  2381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  2382
for as_dir in $PATH
melunko@47
  2383
do
melunko@47
  2384
  IFS=$as_save_IFS
melunko@47
  2385
  test -z "$as_dir" && as_dir=.
melunko@47
  2386
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  2387
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  2388
    ac_cv_prog_ac_ct_CC="cc"
melunko@47
  2389
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  2390
    break 2
melunko@47
  2391
  fi
melunko@47
  2392
done
melunko@47
  2393
done
melunko@47
  2394
melunko@47
  2395
fi
melunko@47
  2396
fi
melunko@47
  2397
ac_ct_CC=$ac_cv_prog_ac_ct_CC
melunko@47
  2398
if test -n "$ac_ct_CC"; then
melunko@47
  2399
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
melunko@47
  2400
echo "${ECHO_T}$ac_ct_CC" >&6
melunko@47
  2401
else
melunko@47
  2402
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  2403
echo "${ECHO_T}no" >&6
melunko@47
  2404
fi
melunko@47
  2405
melunko@47
  2406
  CC=$ac_ct_CC
melunko@47
  2407
else
melunko@47
  2408
  CC="$ac_cv_prog_CC"
melunko@47
  2409
fi
melunko@47
  2410
melunko@47
  2411
fi
melunko@47
  2412
if test -z "$CC"; then
melunko@47
  2413
  # Extract the first word of "cc", so it can be a program name with args.
melunko@47
  2414
set dummy cc; ac_word=$2
melunko@47
  2415
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  2416
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  2417
if test "${ac_cv_prog_CC+set}" = set; then
melunko@47
  2418
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  2419
else
melunko@47
  2420
  if test -n "$CC"; then
melunko@47
  2421
  ac_cv_prog_CC="$CC" # Let the user override the test.
melunko@47
  2422
else
melunko@47
  2423
  ac_prog_rejected=no
melunko@47
  2424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  2425
for as_dir in $PATH
melunko@47
  2426
do
melunko@47
  2427
  IFS=$as_save_IFS
melunko@47
  2428
  test -z "$as_dir" && as_dir=.
melunko@47
  2429
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  2430
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  2431
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
melunko@47
  2432
       ac_prog_rejected=yes
melunko@47
  2433
       continue
melunko@47
  2434
     fi
melunko@47
  2435
    ac_cv_prog_CC="cc"
melunko@47
  2436
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  2437
    break 2
melunko@47
  2438
  fi
melunko@47
  2439
done
melunko@47
  2440
done
melunko@47
  2441
melunko@47
  2442
if test $ac_prog_rejected = yes; then
melunko@47
  2443
  # We found a bogon in the path, so make sure we never use it.
melunko@47
  2444
  set dummy $ac_cv_prog_CC
melunko@47
  2445
  shift
melunko@47
  2446
  if test $@%:@ != 0; then
melunko@47
  2447
    # We chose a different compiler from the bogus one.
melunko@47
  2448
    # However, it has the same basename, so the bogon will be chosen
melunko@47
  2449
    # first if we set CC to just the basename; use the full file name.
melunko@47
  2450
    shift
melunko@47
  2451
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
melunko@47
  2452
  fi
melunko@47
  2453
fi
melunko@47
  2454
fi
melunko@47
  2455
fi
melunko@47
  2456
CC=$ac_cv_prog_CC
melunko@47
  2457
if test -n "$CC"; then
melunko@47
  2458
  echo "$as_me:$LINENO: result: $CC" >&5
melunko@47
  2459
echo "${ECHO_T}$CC" >&6
melunko@47
  2460
else
melunko@47
  2461
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  2462
echo "${ECHO_T}no" >&6
melunko@47
  2463
fi
melunko@47
  2464
melunko@47
  2465
fi
melunko@47
  2466
if test -z "$CC"; then
melunko@47
  2467
  if test -n "$ac_tool_prefix"; then
melunko@47
  2468
  for ac_prog in cl
melunko@47
  2469
  do
melunko@47
  2470
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
melunko@47
  2471
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
melunko@47
  2472
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  2473
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  2474
if test "${ac_cv_prog_CC+set}" = set; then
melunko@47
  2475
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  2476
else
melunko@47
  2477
  if test -n "$CC"; then
melunko@47
  2478
  ac_cv_prog_CC="$CC" # Let the user override the test.
melunko@47
  2479
else
melunko@47
  2480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  2481
for as_dir in $PATH
melunko@47
  2482
do
melunko@47
  2483
  IFS=$as_save_IFS
melunko@47
  2484
  test -z "$as_dir" && as_dir=.
melunko@47
  2485
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  2486
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  2487
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
melunko@47
  2488
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  2489
    break 2
melunko@47
  2490
  fi
melunko@47
  2491
done
melunko@47
  2492
done
melunko@47
  2493
melunko@47
  2494
fi
melunko@47
  2495
fi
melunko@47
  2496
CC=$ac_cv_prog_CC
melunko@47
  2497
if test -n "$CC"; then
melunko@47
  2498
  echo "$as_me:$LINENO: result: $CC" >&5
melunko@47
  2499
echo "${ECHO_T}$CC" >&6
melunko@47
  2500
else
melunko@47
  2501
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  2502
echo "${ECHO_T}no" >&6
melunko@47
  2503
fi
melunko@47
  2504
melunko@47
  2505
    test -n "$CC" && break
melunko@47
  2506
  done
melunko@47
  2507
fi
melunko@47
  2508
if test -z "$CC"; then
melunko@47
  2509
  ac_ct_CC=$CC
melunko@47
  2510
  for ac_prog in cl
melunko@47
  2511
do
melunko@47
  2512
  # Extract the first word of "$ac_prog", so it can be a program name with args.
melunko@47
  2513
set dummy $ac_prog; ac_word=$2
melunko@47
  2514
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  2515
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  2516
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
melunko@47
  2517
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  2518
else
melunko@47
  2519
  if test -n "$ac_ct_CC"; then
melunko@47
  2520
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
melunko@47
  2521
else
melunko@47
  2522
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  2523
for as_dir in $PATH
melunko@47
  2524
do
melunko@47
  2525
  IFS=$as_save_IFS
melunko@47
  2526
  test -z "$as_dir" && as_dir=.
melunko@47
  2527
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  2528
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  2529
    ac_cv_prog_ac_ct_CC="$ac_prog"
melunko@47
  2530
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  2531
    break 2
melunko@47
  2532
  fi
melunko@47
  2533
done
melunko@47
  2534
done
melunko@47
  2535
melunko@47
  2536
fi
melunko@47
  2537
fi
melunko@47
  2538
ac_ct_CC=$ac_cv_prog_ac_ct_CC
melunko@47
  2539
if test -n "$ac_ct_CC"; then
melunko@47
  2540
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
melunko@47
  2541
echo "${ECHO_T}$ac_ct_CC" >&6
melunko@47
  2542
else
melunko@47
  2543
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  2544
echo "${ECHO_T}no" >&6
melunko@47
  2545
fi
melunko@47
  2546
melunko@47
  2547
  test -n "$ac_ct_CC" && break
melunko@47
  2548
done
melunko@47
  2549
melunko@47
  2550
  CC=$ac_ct_CC
melunko@47
  2551
fi
melunko@47
  2552
melunko@47
  2553
fi
melunko@47
  2554
melunko@47
  2555
melunko@47
  2556
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
melunko@47
  2557
See \`config.log' for more details." >&5
melunko@47
  2558
echo "$as_me: error: no acceptable C compiler found in \$PATH
melunko@47
  2559
See \`config.log' for more details." >&2;}
melunko@47
  2560
   { (exit 1); exit 1; }; }
melunko@47
  2561
melunko@47
  2562
# Provide some information about the compiler.
melunko@47
  2563
echo "$as_me:$LINENO:" \
melunko@47
  2564
     "checking for C compiler version" >&5
melunko@47
  2565
ac_compiler=`set X $ac_compile; echo $2`
melunko@47
  2566
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
melunko@47
  2567
  (eval $ac_compiler --version </dev/null >&5) 2>&5
melunko@47
  2568
  ac_status=$?
melunko@47
  2569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2570
  (exit $ac_status); }
melunko@47
  2571
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
melunko@47
  2572
  (eval $ac_compiler -v </dev/null >&5) 2>&5
melunko@47
  2573
  ac_status=$?
melunko@47
  2574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2575
  (exit $ac_status); }
melunko@47
  2576
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
melunko@47
  2577
  (eval $ac_compiler -V </dev/null >&5) 2>&5
melunko@47
  2578
  ac_status=$?
melunko@47
  2579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2580
  (exit $ac_status); }
melunko@47
  2581
melunko@47
  2582
cat >conftest.$ac_ext <<_ACEOF
melunko@47
  2583
/* confdefs.h.  */
melunko@47
  2584
_ACEOF
melunko@47
  2585
cat confdefs.h >>conftest.$ac_ext
melunko@47
  2586
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  2587
/* end confdefs.h.  */
melunko@47
  2588
melunko@47
  2589
int
melunko@47
  2590
main ()
melunko@47
  2591
{
melunko@47
  2592
melunko@47
  2593
  ;
melunko@47
  2594
  return 0;
melunko@47
  2595
}
melunko@47
  2596
_ACEOF
melunko@47
  2597
ac_clean_files_save=$ac_clean_files
melunko@47
  2598
ac_clean_files="$ac_clean_files a.out a.exe b.out"
melunko@47
  2599
# Try to create an executable without -o first, disregard a.out.
melunko@47
  2600
# It will help us diagnose broken compilers, and finding out an intuition
melunko@47
  2601
# of exeext.
melunko@47
  2602
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
melunko@47
  2603
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
melunko@47
  2604
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
melunko@47
  2605
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
melunko@47
  2606
  (eval $ac_link_default) 2>&5
melunko@47
  2607
  ac_status=$?
melunko@47
  2608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2609
  (exit $ac_status); }; then
melunko@47
  2610
  # Find the output, starting from the most likely.  This scheme is
melunko@47
  2611
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
melunko@47
  2612
# resort.
melunko@47
  2613
melunko@47
  2614
# Be careful to initialize this variable, since it used to be cached.
melunko@47
  2615
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
melunko@47
  2616
ac_cv_exeext=
melunko@47
  2617
# b.out is created by i960 compilers.
melunko@47
  2618
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
melunko@47
  2619
do
melunko@47
  2620
  test -f "$ac_file" || continue
melunko@47
  2621
  case $ac_file in
melunko@47
  2622
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
melunko@47
  2623
	;;
melunko@47
  2624
    conftest.$ac_ext )
melunko@47
  2625
	# This is the source file.
melunko@47
  2626
	;;
melunko@47
  2627
    [ab].out )
melunko@47
  2628
	# We found the default executable, but exeext='' is most
melunko@47
  2629
	# certainly right.
melunko@47
  2630
	break;;
melunko@47
  2631
    *.* )
melunko@47
  2632
	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
melunko@47
  2633
	# FIXME: I believe we export ac_cv_exeext for Libtool,
melunko@47
  2634
	# but it would be cool to find out if it's true.  Does anybody
melunko@47
  2635
	# maintain Libtool? --akim.
melunko@47
  2636
	export ac_cv_exeext
melunko@47
  2637
	break;;
melunko@47
  2638
    * )
melunko@47
  2639
	break;;
melunko@47
  2640
  esac
melunko@47
  2641
done
melunko@47
  2642
else
melunko@47
  2643
  echo "$as_me: failed program was:" >&5
melunko@47
  2644
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  2645
melunko@47
  2646
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
melunko@47
  2647
See \`config.log' for more details." >&5
melunko@47
  2648
echo "$as_me: error: C compiler cannot create executables
melunko@47
  2649
See \`config.log' for more details." >&2;}
melunko@47
  2650
   { (exit 77); exit 77; }; }
melunko@47
  2651
fi
melunko@47
  2652
melunko@47
  2653
ac_exeext=$ac_cv_exeext
melunko@47
  2654
echo "$as_me:$LINENO: result: $ac_file" >&5
melunko@47
  2655
echo "${ECHO_T}$ac_file" >&6
melunko@47
  2656
melunko@47
  2657
# Check the compiler produces executables we can run.  If not, either
melunko@47
  2658
# the compiler is broken, or we cross compile.
melunko@47
  2659
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
melunko@47
  2660
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
melunko@47
  2661
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
melunko@47
  2662
# If not cross compiling, check that we can run a simple program.
melunko@47
  2663
if test "$cross_compiling" != yes; then
melunko@47
  2664
  if { ac_try='./$ac_file'
melunko@47
  2665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  2666
  (eval $ac_try) 2>&5
melunko@47
  2667
  ac_status=$?
melunko@47
  2668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2669
  (exit $ac_status); }; }; then
melunko@47
  2670
    cross_compiling=no
melunko@47
  2671
  else
melunko@47
  2672
    if test "$cross_compiling" = maybe; then
melunko@47
  2673
	cross_compiling=yes
melunko@47
  2674
    else
melunko@47
  2675
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
melunko@47
  2676
If you meant to cross compile, use \`--host'.
melunko@47
  2677
See \`config.log' for more details." >&5
melunko@47
  2678
echo "$as_me: error: cannot run C compiled programs.
melunko@47
  2679
If you meant to cross compile, use \`--host'.
melunko@47
  2680
See \`config.log' for more details." >&2;}
melunko@47
  2681
   { (exit 1); exit 1; }; }
melunko@47
  2682
    fi
melunko@47
  2683
  fi
melunko@47
  2684
fi
melunko@47
  2685
echo "$as_me:$LINENO: result: yes" >&5
melunko@47
  2686
echo "${ECHO_T}yes" >&6
melunko@47
  2687
melunko@47
  2688
rm -f a.out a.exe conftest$ac_cv_exeext b.out
melunko@47
  2689
ac_clean_files=$ac_clean_files_save
melunko@47
  2690
# Check the compiler produces executables we can run.  If not, either
melunko@47
  2691
# the compiler is broken, or we cross compile.
melunko@47
  2692
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
melunko@47
  2693
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
melunko@47
  2694
echo "$as_me:$LINENO: result: $cross_compiling" >&5
melunko@47
  2695
echo "${ECHO_T}$cross_compiling" >&6
melunko@47
  2696
melunko@47
  2697
echo "$as_me:$LINENO: checking for suffix of executables" >&5
melunko@47
  2698
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
melunko@47
  2699
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  2700
  (eval $ac_link) 2>&5
melunko@47
  2701
  ac_status=$?
melunko@47
  2702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2703
  (exit $ac_status); }; then
melunko@47
  2704
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
melunko@47
  2705
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
melunko@47
  2706
# work properly (i.e., refer to `conftest.exe'), while it won't with
melunko@47
  2707
# `rm'.
melunko@47
  2708
for ac_file in conftest.exe conftest conftest.*; do
melunko@47
  2709
  test -f "$ac_file" || continue
melunko@47
  2710
  case $ac_file in
melunko@47
  2711
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
melunko@47
  2712
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
melunko@47
  2713
	  export ac_cv_exeext
melunko@47
  2714
	  break;;
melunko@47
  2715
    * ) break;;
melunko@47
  2716
  esac
melunko@47
  2717
done
melunko@47
  2718
else
melunko@47
  2719
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
melunko@47
  2720
See \`config.log' for more details." >&5
melunko@47
  2721
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
melunko@47
  2722
See \`config.log' for more details." >&2;}
melunko@47
  2723
   { (exit 1); exit 1; }; }
melunko@47
  2724
fi
melunko@47
  2725
melunko@47
  2726
rm -f conftest$ac_cv_exeext
melunko@47
  2727
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
melunko@47
  2728
echo "${ECHO_T}$ac_cv_exeext" >&6
melunko@47
  2729
melunko@47
  2730
rm -f conftest.$ac_ext
melunko@47
  2731
EXEEXT=$ac_cv_exeext
melunko@47
  2732
ac_exeext=$EXEEXT
melunko@47
  2733
echo "$as_me:$LINENO: checking for suffix of object files" >&5
melunko@47
  2734
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
melunko@47
  2735
if test "${ac_cv_objext+set}" = set; then
melunko@47
  2736
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  2737
else
melunko@47
  2738
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  2739
/* confdefs.h.  */
melunko@47
  2740
_ACEOF
melunko@47
  2741
cat confdefs.h >>conftest.$ac_ext
melunko@47
  2742
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  2743
/* end confdefs.h.  */
melunko@47
  2744
melunko@47
  2745
int
melunko@47
  2746
main ()
melunko@47
  2747
{
melunko@47
  2748
melunko@47
  2749
  ;
melunko@47
  2750
  return 0;
melunko@47
  2751
}
melunko@47
  2752
_ACEOF
melunko@47
  2753
rm -f conftest.o conftest.obj
melunko@47
  2754
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  2755
  (eval $ac_compile) 2>&5
melunko@47
  2756
  ac_status=$?
melunko@47
  2757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2758
  (exit $ac_status); }; then
melunko@47
  2759
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
melunko@47
  2760
  case $ac_file in
melunko@47
  2761
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
melunko@47
  2762
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
melunko@47
  2763
       break;;
melunko@47
  2764
  esac
melunko@47
  2765
done
melunko@47
  2766
else
melunko@47
  2767
  echo "$as_me: failed program was:" >&5
melunko@47
  2768
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  2769
melunko@47
  2770
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
melunko@47
  2771
See \`config.log' for more details." >&5
melunko@47
  2772
echo "$as_me: error: cannot compute suffix of object files: cannot compile
melunko@47
  2773
See \`config.log' for more details." >&2;}
melunko@47
  2774
   { (exit 1); exit 1; }; }
melunko@47
  2775
fi
melunko@47
  2776
melunko@47
  2777
rm -f conftest.$ac_cv_objext conftest.$ac_ext
melunko@47
  2778
fi
melunko@47
  2779
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
melunko@47
  2780
echo "${ECHO_T}$ac_cv_objext" >&6
melunko@47
  2781
OBJEXT=$ac_cv_objext
melunko@47
  2782
ac_objext=$OBJEXT
melunko@47
  2783
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
melunko@47
  2784
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
melunko@47
  2785
if test "${ac_cv_c_compiler_gnu+set}" = set; then
melunko@47
  2786
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  2787
else
melunko@47
  2788
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  2789
/* confdefs.h.  */
melunko@47
  2790
_ACEOF
melunko@47
  2791
cat confdefs.h >>conftest.$ac_ext
melunko@47
  2792
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  2793
/* end confdefs.h.  */
melunko@47
  2794
melunko@47
  2795
int
melunko@47
  2796
main ()
melunko@47
  2797
{
melunko@47
  2798
#ifndef __GNUC__
melunko@47
  2799
       choke me
melunko@47
  2800
#endif
melunko@47
  2801
melunko@47
  2802
  ;
melunko@47
  2803
  return 0;
melunko@47
  2804
}
melunko@47
  2805
_ACEOF
melunko@47
  2806
rm -f conftest.$ac_objext
melunko@47
  2807
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  2808
  (eval $ac_compile) 2>conftest.er1
melunko@47
  2809
  ac_status=$?
melunko@47
  2810
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  2811
  rm -f conftest.er1
melunko@47
  2812
  cat conftest.err >&5
melunko@47
  2813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2814
  (exit $ac_status); } &&
melunko@47
  2815
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  2816
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  2817
  (eval $ac_try) 2>&5
melunko@47
  2818
  ac_status=$?
melunko@47
  2819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2820
  (exit $ac_status); }; } &&
melunko@47
  2821
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  2822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  2823
  (eval $ac_try) 2>&5
melunko@47
  2824
  ac_status=$?
melunko@47
  2825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2826
  (exit $ac_status); }; }; then
melunko@47
  2827
  ac_compiler_gnu=yes
melunko@47
  2828
else
melunko@47
  2829
  echo "$as_me: failed program was:" >&5
melunko@47
  2830
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  2831
melunko@47
  2832
ac_compiler_gnu=no
melunko@47
  2833
fi
melunko@47
  2834
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
  2835
ac_cv_c_compiler_gnu=$ac_compiler_gnu
melunko@47
  2836
melunko@47
  2837
fi
melunko@47
  2838
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
melunko@47
  2839
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
melunko@47
  2840
GCC=`test $ac_compiler_gnu = yes && echo yes`
melunko@47
  2841
ac_test_CFLAGS=${CFLAGS+set}
melunko@47
  2842
ac_save_CFLAGS=$CFLAGS
melunko@47
  2843
CFLAGS="-g"
melunko@47
  2844
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
melunko@47
  2845
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
melunko@47
  2846
if test "${ac_cv_prog_cc_g+set}" = set; then
melunko@47
  2847
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  2848
else
melunko@47
  2849
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  2850
/* confdefs.h.  */
melunko@47
  2851
_ACEOF
melunko@47
  2852
cat confdefs.h >>conftest.$ac_ext
melunko@47
  2853
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  2854
/* end confdefs.h.  */
melunko@47
  2855
melunko@47
  2856
int
melunko@47
  2857
main ()
melunko@47
  2858
{
melunko@47
  2859
melunko@47
  2860
  ;
melunko@47
  2861
  return 0;
melunko@47
  2862
}
melunko@47
  2863
_ACEOF
melunko@47
  2864
rm -f conftest.$ac_objext
melunko@47
  2865
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  2866
  (eval $ac_compile) 2>conftest.er1
melunko@47
  2867
  ac_status=$?
melunko@47
  2868
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  2869
  rm -f conftest.er1
melunko@47
  2870
  cat conftest.err >&5
melunko@47
  2871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2872
  (exit $ac_status); } &&
melunko@47
  2873
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  2874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  2875
  (eval $ac_try) 2>&5
melunko@47
  2876
  ac_status=$?
melunko@47
  2877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2878
  (exit $ac_status); }; } &&
melunko@47
  2879
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  2880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  2881
  (eval $ac_try) 2>&5
melunko@47
  2882
  ac_status=$?
melunko@47
  2883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2884
  (exit $ac_status); }; }; then
melunko@47
  2885
  ac_cv_prog_cc_g=yes
melunko@47
  2886
else
melunko@47
  2887
  echo "$as_me: failed program was:" >&5
melunko@47
  2888
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  2889
melunko@47
  2890
ac_cv_prog_cc_g=no
melunko@47
  2891
fi
melunko@47
  2892
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
  2893
fi
melunko@47
  2894
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
melunko@47
  2895
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
melunko@47
  2896
if test "$ac_test_CFLAGS" = set; then
melunko@47
  2897
  CFLAGS=$ac_save_CFLAGS
melunko@47
  2898
elif test $ac_cv_prog_cc_g = yes; then
melunko@47
  2899
  if test "$GCC" = yes; then
melunko@47
  2900
    CFLAGS="-g -O2"
melunko@47
  2901
  else
melunko@47
  2902
    CFLAGS="-g"
melunko@47
  2903
  fi
melunko@47
  2904
else
melunko@47
  2905
  if test "$GCC" = yes; then
melunko@47
  2906
    CFLAGS="-O2"
melunko@47
  2907
  else
melunko@47
  2908
    CFLAGS=
melunko@47
  2909
  fi
melunko@47
  2910
fi
melunko@47
  2911
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
melunko@47
  2912
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
melunko@47
  2913
if test "${ac_cv_prog_cc_stdc+set}" = set; then
melunko@47
  2914
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  2915
else
melunko@47
  2916
  ac_cv_prog_cc_stdc=no
melunko@47
  2917
ac_save_CC=$CC
melunko@47
  2918
cat >conftest.$ac_ext <<_ACEOF
melunko@47
  2919
/* confdefs.h.  */
melunko@47
  2920
_ACEOF
melunko@47
  2921
cat confdefs.h >>conftest.$ac_ext
melunko@47
  2922
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  2923
/* end confdefs.h.  */
melunko@47
  2924
#include <stdarg.h>
melunko@47
  2925
#include <stdio.h>
melunko@47
  2926
#include <sys/types.h>
melunko@47
  2927
#include <sys/stat.h>
melunko@47
  2928
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
melunko@47
  2929
struct buf { int x; };
melunko@47
  2930
FILE * (*rcsopen) (struct buf *, struct stat *, int);
melunko@47
  2931
static char *e (p, i)
melunko@47
  2932
     char **p;
melunko@47
  2933
     int i;
melunko@47
  2934
{
melunko@47
  2935
  return p[i];
melunko@47
  2936
}
melunko@47
  2937
static char *f (char * (*g) (char **, int), char **p, ...)
melunko@47
  2938
{
melunko@47
  2939
  char *s;
melunko@47
  2940
  va_list v;
melunko@47
  2941
  va_start (v,p);
melunko@47
  2942
  s = g (p, va_arg (v,int));
melunko@47
  2943
  va_end (v);
melunko@47
  2944
  return s;
melunko@47
  2945
}
melunko@47
  2946
melunko@47
  2947
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
melunko@47
  2948
   function prototypes and stuff, but not '\xHH' hex character constants.
melunko@47
  2949
   These don't provoke an error unfortunately, instead are silently treated
melunko@47
  2950
   as 'x'.  The following induces an error, until -std1 is added to get
melunko@47
  2951
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
melunko@47
  2952
   array size at least.  It's necessary to write '\x00'==0 to get something
melunko@47
  2953
   that's true only with -std1.  */
melunko@47
  2954
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
melunko@47
  2955
melunko@47
  2956
int test (int i, double x);
melunko@47
  2957
struct s1 {int (*f) (int a);};
melunko@47
  2958
struct s2 {int (*f) (double a);};
melunko@47
  2959
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
melunko@47
  2960
int argc;
melunko@47
  2961
char **argv;
melunko@47
  2962
int
melunko@47
  2963
main ()
melunko@47
  2964
{
melunko@47
  2965
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
melunko@47
  2966
  ;
melunko@47
  2967
  return 0;
melunko@47
  2968
}
melunko@47
  2969
_ACEOF
melunko@47
  2970
# Don't try gcc -ansi; that turns off useful extensions and
melunko@47
  2971
# breaks some systems' header files.
melunko@47
  2972
# AIX			-qlanglvl=ansi
melunko@47
  2973
# Ultrix and OSF/1	-std1
melunko@47
  2974
# HP-UX 10.20 and later	-Ae
melunko@47
  2975
# HP-UX older versions	-Aa -D_HPUX_SOURCE
melunko@47
  2976
# SVR4			-Xc -D__EXTENSIONS__
melunko@47
  2977
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
melunko@47
  2978
do
melunko@47
  2979
  CC="$ac_save_CC $ac_arg"
melunko@47
  2980
  rm -f conftest.$ac_objext
melunko@47
  2981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  2982
  (eval $ac_compile) 2>conftest.er1
melunko@47
  2983
  ac_status=$?
melunko@47
  2984
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  2985
  rm -f conftest.er1
melunko@47
  2986
  cat conftest.err >&5
melunko@47
  2987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2988
  (exit $ac_status); } &&
melunko@47
  2989
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  2990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  2991
  (eval $ac_try) 2>&5
melunko@47
  2992
  ac_status=$?
melunko@47
  2993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  2994
  (exit $ac_status); }; } &&
melunko@47
  2995
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  2996
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  2997
  (eval $ac_try) 2>&5
melunko@47
  2998
  ac_status=$?
melunko@47
  2999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3000
  (exit $ac_status); }; }; then
melunko@47
  3001
  ac_cv_prog_cc_stdc=$ac_arg
melunko@47
  3002
break
melunko@47
  3003
else
melunko@47
  3004
  echo "$as_me: failed program was:" >&5
melunko@47
  3005
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  3006
melunko@47
  3007
fi
melunko@47
  3008
rm -f conftest.err conftest.$ac_objext 
melunko@47
  3009
done
melunko@47
  3010
rm -f conftest.$ac_ext conftest.$ac_objext
melunko@47
  3011
CC=$ac_save_CC
melunko@47
  3012
melunko@47
  3013
fi
melunko@47
  3014
melunko@47
  3015
case "x$ac_cv_prog_cc_stdc" in
melunko@47
  3016
  x|xno)
melunko@47
  3017
    echo "$as_me:$LINENO: result: none needed" >&5
melunko@47
  3018
echo "${ECHO_T}none needed" >&6 ;;
melunko@47
  3019
  *)
melunko@47
  3020
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
melunko@47
  3021
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
melunko@47
  3022
    CC="$CC $ac_cv_prog_cc_stdc" ;;
melunko@47
  3023
esac
melunko@47
  3024
melunko@47
  3025
# Some people use a C++ compiler to compile C.  Since we use `exit',
melunko@47
  3026
# in C++ we need to declare it.  In case someone uses the same compiler
melunko@47
  3027
# for both compiling C and C++ we need to have the C++ compiler decide
melunko@47
  3028
# the declaration of exit, since it's the most demanding environment.
melunko@47
  3029
cat >conftest.$ac_ext <<_ACEOF
melunko@47
  3030
@%:@ifndef __cplusplus
melunko@47
  3031
  choke me
melunko@47
  3032
@%:@endif
melunko@47
  3033
_ACEOF
melunko@47
  3034
rm -f conftest.$ac_objext
melunko@47
  3035
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  3036
  (eval $ac_compile) 2>conftest.er1
melunko@47
  3037
  ac_status=$?
melunko@47
  3038
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  3039
  rm -f conftest.er1
melunko@47
  3040
  cat conftest.err >&5
melunko@47
  3041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3042
  (exit $ac_status); } &&
melunko@47
  3043
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  3044
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  3045
  (eval $ac_try) 2>&5
melunko@47
  3046
  ac_status=$?
melunko@47
  3047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3048
  (exit $ac_status); }; } &&
melunko@47
  3049
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  3050
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  3051
  (eval $ac_try) 2>&5
melunko@47
  3052
  ac_status=$?
melunko@47
  3053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3054
  (exit $ac_status); }; }; then
melunko@47
  3055
  for ac_declaration in \
melunko@47
  3056
   '' \
melunko@47
  3057
   'extern "C" void std::exit (int) throw (); using std::exit;' \
melunko@47
  3058
   'extern "C" void std::exit (int); using std::exit;' \
melunko@47
  3059
   'extern "C" void exit (int) throw ();' \
melunko@47
  3060
   'extern "C" void exit (int);' \
melunko@47
  3061
   'void exit (int);'
melunko@47
  3062
do
melunko@47
  3063
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  3064
/* confdefs.h.  */
melunko@47
  3065
_ACEOF
melunko@47
  3066
cat confdefs.h >>conftest.$ac_ext
melunko@47
  3067
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  3068
/* end confdefs.h.  */
melunko@47
  3069
$ac_declaration
melunko@47
  3070
@%:@include <stdlib.h>
melunko@47
  3071
int
melunko@47
  3072
main ()
melunko@47
  3073
{
melunko@47
  3074
exit (42);
melunko@47
  3075
  ;
melunko@47
  3076
  return 0;
melunko@47
  3077
}
melunko@47
  3078
_ACEOF
melunko@47
  3079
rm -f conftest.$ac_objext
melunko@47
  3080
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  3081
  (eval $ac_compile) 2>conftest.er1
melunko@47
  3082
  ac_status=$?
melunko@47
  3083
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  3084
  rm -f conftest.er1
melunko@47
  3085
  cat conftest.err >&5
melunko@47
  3086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3087
  (exit $ac_status); } &&
melunko@47
  3088
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  3089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  3090
  (eval $ac_try) 2>&5
melunko@47
  3091
  ac_status=$?
melunko@47
  3092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3093
  (exit $ac_status); }; } &&
melunko@47
  3094
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  3095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  3096
  (eval $ac_try) 2>&5
melunko@47
  3097
  ac_status=$?
melunko@47
  3098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3099
  (exit $ac_status); }; }; then
melunko@47
  3100
  :
melunko@47
  3101
else
melunko@47
  3102
  echo "$as_me: failed program was:" >&5
melunko@47
  3103
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  3104
melunko@47
  3105
continue
melunko@47
  3106
fi
melunko@47
  3107
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
  3108
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  3109
/* confdefs.h.  */
melunko@47
  3110
_ACEOF
melunko@47
  3111
cat confdefs.h >>conftest.$ac_ext
melunko@47
  3112
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  3113
/* end confdefs.h.  */
melunko@47
  3114
$ac_declaration
melunko@47
  3115
int
melunko@47
  3116
main ()
melunko@47
  3117
{
melunko@47
  3118
exit (42);
melunko@47
  3119
  ;
melunko@47
  3120
  return 0;
melunko@47
  3121
}
melunko@47
  3122
_ACEOF
melunko@47
  3123
rm -f conftest.$ac_objext
melunko@47
  3124
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  3125
  (eval $ac_compile) 2>conftest.er1
melunko@47
  3126
  ac_status=$?
melunko@47
  3127
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  3128
  rm -f conftest.er1
melunko@47
  3129
  cat conftest.err >&5
melunko@47
  3130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3131
  (exit $ac_status); } &&
melunko@47
  3132
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  3133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  3134
  (eval $ac_try) 2>&5
melunko@47
  3135
  ac_status=$?
melunko@47
  3136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3137
  (exit $ac_status); }; } &&
melunko@47
  3138
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  3139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  3140
  (eval $ac_try) 2>&5
melunko@47
  3141
  ac_status=$?
melunko@47
  3142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3143
  (exit $ac_status); }; }; then
melunko@47
  3144
  break
melunko@47
  3145
else
melunko@47
  3146
  echo "$as_me: failed program was:" >&5
melunko@47
  3147
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  3148
melunko@47
  3149
fi
melunko@47
  3150
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
  3151
done
melunko@47
  3152
rm -f conftest*
melunko@47
  3153
if test -n "$ac_declaration"; then
melunko@47
  3154
  echo '#ifdef __cplusplus' >>confdefs.h
melunko@47
  3155
  echo $ac_declaration      >>confdefs.h
melunko@47
  3156
  echo '#endif'             >>confdefs.h
melunko@47
  3157
fi
melunko@47
  3158
melunko@47
  3159
else
melunko@47
  3160
  echo "$as_me: failed program was:" >&5
melunko@47
  3161
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  3162
melunko@47
  3163
fi
melunko@47
  3164
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
  3165
ac_ext=c
melunko@47
  3166
ac_cpp='$CPP $CPPFLAGS'
melunko@47
  3167
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  3168
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  3169
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
  3170
melunko@47
  3171
depcc="$CC"   am_compiler_list=
melunko@47
  3172
melunko@47
  3173
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
melunko@47
  3174
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
melunko@47
  3175
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
melunko@47
  3176
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  3177
else
melunko@47
  3178
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
melunko@47
  3179
  # We make a subdir and do the tests there.  Otherwise we can end up
melunko@47
  3180
  # making bogus files that we don't know about and never remove.  For
melunko@47
  3181
  # instance it was reported that on HP-UX the gcc test will end up
melunko@47
  3182
  # making a dummy file named `D' -- because `-MD' means `put the output
melunko@47
  3183
  # in D'.
melunko@47
  3184
  mkdir conftest.dir
melunko@47
  3185
  # Copy depcomp to subdir because otherwise we won't find it if we're
melunko@47
  3186
  # using a relative directory.
melunko@47
  3187
  cp "$am_depcomp" conftest.dir
melunko@47
  3188
  cd conftest.dir
melunko@47
  3189
  # We will build objects and dependencies in a subdirectory because
melunko@47
  3190
  # it helps to detect inapplicable dependency modes.  For instance
melunko@47
  3191
  # both Tru64's cc and ICC support -MD to output dependencies as a
melunko@47
  3192
  # side effect of compilation, but ICC will put the dependencies in
melunko@47
  3193
  # the current directory while Tru64 will put them in the object
melunko@47
  3194
  # directory.
melunko@47
  3195
  mkdir sub
melunko@47
  3196
melunko@47
  3197
  am_cv_CC_dependencies_compiler_type=none
melunko@47
  3198
  if test "$am_compiler_list" = ""; then
melunko@47
  3199
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
melunko@47
  3200
  fi
melunko@47
  3201
  for depmode in $am_compiler_list; do
melunko@47
  3202
    # Setup a source with many dependencies, because some compilers
melunko@47
  3203
    # like to wrap large dependency lists on column 80 (with \), and
melunko@47
  3204
    # we should not choose a depcomp mode which is confused by this.
melunko@47
  3205
    #
melunko@47
  3206
    # We need to recreate these files for each test, as the compiler may
melunko@47
  3207
    # overwrite some of them when testing with obscure command lines.
melunko@47
  3208
    # This happens at least with the AIX C compiler.
melunko@47
  3209
    : > sub/conftest.c
melunko@47
  3210
    for i in 1 2 3 4 5 6; do
melunko@47
  3211
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
melunko@47
  3212
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
melunko@47
  3213
      # Solaris 8's {/usr,}/bin/sh.
melunko@47
  3214
      touch sub/conftst$i.h
melunko@47
  3215
    done
melunko@47
  3216
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
melunko@47
  3217
melunko@47
  3218
    case $depmode in
melunko@47
  3219
    nosideeffect)
melunko@47
  3220
      # after this tag, mechanisms are not by side-effect, so they'll
melunko@47
  3221
      # only be used when explicitly requested
melunko@47
  3222
      if test "x$enable_dependency_tracking" = xyes; then
melunko@47
  3223
	continue
melunko@47
  3224
      else
melunko@47
  3225
	break
melunko@47
  3226
      fi
melunko@47
  3227
      ;;
melunko@47
  3228
    none) break ;;
melunko@47
  3229
    esac
melunko@47
  3230
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
melunko@47
  3231
    # mode.  It turns out that the SunPro C++ compiler does not properly
melunko@47
  3232
    # handle `-M -o', and we need to detect this.
melunko@47
  3233
    if depmode=$depmode \
melunko@47
  3234
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
melunko@47
  3235
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
melunko@47
  3236
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
melunko@47
  3237
         >/dev/null 2>conftest.err &&
melunko@47
  3238
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
melunko@47
  3239
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
melunko@47
  3240
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
melunko@47
  3241
      # icc doesn't choke on unknown options, it will just issue warnings
melunko@47
  3242
      # or remarks (even with -Werror).  So we grep stderr for any message
melunko@47
  3243
      # that says an option was ignored or not supported.
melunko@47
  3244
      # When given -MP, icc 7.0 and 7.1 complain thusly:
melunko@47
  3245
      #   icc: Command line warning: ignoring option '-M'; no argument required
melunko@47
  3246
      # The diagnosis changed in icc 8.0:
melunko@47
  3247
      #   icc: Command line remark: option '-MP' not supported
melunko@47
  3248
      if (grep 'ignoring option' conftest.err ||
melunko@47
  3249
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
melunko@47
  3250
        am_cv_CC_dependencies_compiler_type=$depmode
melunko@47
  3251
        break
melunko@47
  3252
      fi
melunko@47
  3253
    fi
melunko@47
  3254
  done
melunko@47
  3255
melunko@47
  3256
  cd ..
melunko@47
  3257
  rm -rf conftest.dir
melunko@47
  3258
else
melunko@47
  3259
  am_cv_CC_dependencies_compiler_type=none
melunko@47
  3260
fi
melunko@47
  3261
melunko@47
  3262
fi
melunko@47
  3263
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
melunko@47
  3264
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
melunko@47
  3265
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
melunko@47
  3266
melunko@47
  3267
 
melunko@47
  3268
melunko@47
  3269
if 
melunko@47
  3270
  test "x$enable_dependency_tracking" != xno \
melunko@47
  3271
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
melunko@47
  3272
  am__fastdepCC_TRUE=
melunko@47
  3273
  am__fastdepCC_FALSE='#'
melunko@47
  3274
else
melunko@47
  3275
  am__fastdepCC_TRUE='#'
melunko@47
  3276
  am__fastdepCC_FALSE=
melunko@47
  3277
fi
melunko@47
  3278
melunko@47
  3279
melunko@47
  3280
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
melunko@47
  3281
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
melunko@47
  3282
if test "${lt_cv_path_SED+set}" = set; then
melunko@47
  3283
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  3284
else
melunko@47
  3285
  # Loop through the user's path and test for sed and gsed.
melunko@47
  3286
# Then use that list of sed's as ones to test for truncation.
melunko@47
  3287
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  3288
for as_dir in $PATH
melunko@47
  3289
do
melunko@47
  3290
  IFS=$as_save_IFS
melunko@47
  3291
  test -z "$as_dir" && as_dir=.
melunko@47
  3292
  for lt_ac_prog in sed gsed; do
melunko@47
  3293
    for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  3294
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
melunko@47
  3295
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
melunko@47
  3296
      fi
melunko@47
  3297
    done
melunko@47
  3298
  done
melunko@47
  3299
done
melunko@47
  3300
lt_ac_max=0
melunko@47
  3301
lt_ac_count=0
melunko@47
  3302
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
melunko@47
  3303
# along with /bin/sed that truncates output.
melunko@47
  3304
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
melunko@47
  3305
  test ! -f $lt_ac_sed && continue
melunko@47
  3306
  cat /dev/null > conftest.in
melunko@47
  3307
  lt_ac_count=0
melunko@47
  3308
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
melunko@47
  3309
  # Check for GNU sed and select it if it is found.
melunko@47
  3310
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
melunko@47
  3311
    lt_cv_path_SED=$lt_ac_sed
melunko@47
  3312
    break
melunko@47
  3313
  fi
melunko@47
  3314
  while true; do
melunko@47
  3315
    cat conftest.in conftest.in >conftest.tmp
melunko@47
  3316
    mv conftest.tmp conftest.in
melunko@47
  3317
    cp conftest.in conftest.nl
melunko@47
  3318
    echo >>conftest.nl
melunko@47
  3319
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
melunko@47
  3320
    cmp -s conftest.out conftest.nl || break
melunko@47
  3321
    # 10000 chars as input seems more than enough
melunko@47
  3322
    test $lt_ac_count -gt 10 && break
melunko@47
  3323
    lt_ac_count=`expr $lt_ac_count + 1`
melunko@47
  3324
    if test $lt_ac_count -gt $lt_ac_max; then
melunko@47
  3325
      lt_ac_max=$lt_ac_count
melunko@47
  3326
      lt_cv_path_SED=$lt_ac_sed
melunko@47
  3327
    fi
melunko@47
  3328
  done
melunko@47
  3329
done
melunko@47
  3330
melunko@47
  3331
fi
melunko@47
  3332
melunko@47
  3333
SED=$lt_cv_path_SED
melunko@47
  3334
echo "$as_me:$LINENO: result: $SED" >&5
melunko@47
  3335
echo "${ECHO_T}$SED" >&6
melunko@47
  3336
melunko@47
  3337
echo "$as_me:$LINENO: checking for egrep" >&5
melunko@47
  3338
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
melunko@47
  3339
if test "${ac_cv_prog_egrep+set}" = set; then
melunko@47
  3340
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  3341
else
melunko@47
  3342
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
melunko@47
  3343
    then ac_cv_prog_egrep='grep -E'
melunko@47
  3344
    else ac_cv_prog_egrep='egrep'
melunko@47
  3345
    fi
melunko@47
  3346
fi
melunko@47
  3347
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
melunko@47
  3348
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
melunko@47
  3349
 EGREP=$ac_cv_prog_egrep
melunko@47
  3350
 
melunko@47
  3351
melunko@47
  3352
melunko@47
  3353
# Check whether --with-gnu-ld or --without-gnu-ld was given.
melunko@47
  3354
if test "${with_gnu_ld+set}" = set; then
melunko@47
  3355
  withval="$with_gnu_ld"
melunko@47
  3356
  test "$withval" = no || with_gnu_ld=yes
melunko@47
  3357
else
melunko@47
  3358
  with_gnu_ld=no
melunko@47
  3359
fi; 
melunko@47
  3360
ac_prog=ld
melunko@47
  3361
if test "$GCC" = yes; then
melunko@47
  3362
  # Check if gcc -print-prog-name=ld gives a path.
melunko@47
  3363
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
melunko@47
  3364
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
melunko@47
  3365
  case $host in
melunko@47
  3366
  *-*-mingw*)
melunko@47
  3367
    # gcc leaves a trailing carriage return which upsets mingw
melunko@47
  3368
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
melunko@47
  3369
  *)
melunko@47
  3370
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
melunko@47
  3371
  esac
melunko@47
  3372
  case $ac_prog in
melunko@47
  3373
    # Accept absolute paths.
melunko@47
  3374
    [\\/]* | ?:[\\/]*)
melunko@47
  3375
      re_direlt='/[^/][^/]*/\.\./'
melunko@47
  3376
      # Canonicalize the pathname of ld
melunko@47
  3377
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
melunko@47
  3378
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
melunko@47
  3379
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
melunko@47
  3380
      done
melunko@47
  3381
      test -z "$LD" && LD="$ac_prog"
melunko@47
  3382
      ;;
melunko@47
  3383
  "")
melunko@47
  3384
    # If it fails, then pretend we aren't using GCC.
melunko@47
  3385
    ac_prog=ld
melunko@47
  3386
    ;;
melunko@47
  3387
  *)
melunko@47
  3388
    # If it is relative, then search for the first ld in PATH.
melunko@47
  3389
    with_gnu_ld=unknown
melunko@47
  3390
    ;;
melunko@47
  3391
  esac
melunko@47
  3392
elif test "$with_gnu_ld" = yes; then
melunko@47
  3393
  echo "$as_me:$LINENO: checking for GNU ld" >&5
melunko@47
  3394
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
melunko@47
  3395
else
melunko@47
  3396
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
melunko@47
  3397
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
melunko@47
  3398
fi
melunko@47
  3399
if test "${lt_cv_path_LD+set}" = set; then
melunko@47
  3400
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  3401
else
melunko@47
  3402
  if test -z "$LD"; then
melunko@47
  3403
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
melunko@47
  3404
  for ac_dir in $PATH; do
melunko@47
  3405
    IFS="$lt_save_ifs"
melunko@47
  3406
    test -z "$ac_dir" && ac_dir=.
melunko@47
  3407
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
melunko@47
  3408
      lt_cv_path_LD="$ac_dir/$ac_prog"
melunko@47
  3409
      # Check to see if the program is GNU ld.  I'd rather use --version,
melunko@47
  3410
      # but apparently some variants of GNU ld only accept -v.
melunko@47
  3411
      # Break only if it was the GNU/non-GNU ld that we prefer.
melunko@47
  3412
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
melunko@47
  3413
      *GNU* | *'with BFD'*)
melunko@47
  3414
	test "$with_gnu_ld" != no && break
melunko@47
  3415
	;;
melunko@47
  3416
      *)
melunko@47
  3417
	test "$with_gnu_ld" != yes && break
melunko@47
  3418
	;;
melunko@47
  3419
      esac
melunko@47
  3420
    fi
melunko@47
  3421
  done
melunko@47
  3422
  IFS="$lt_save_ifs"
melunko@47
  3423
else
melunko@47
  3424
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
melunko@47
  3425
fi
melunko@47
  3426
fi
melunko@47
  3427
melunko@47
  3428
LD="$lt_cv_path_LD"
melunko@47
  3429
if test -n "$LD"; then
melunko@47
  3430
  echo "$as_me:$LINENO: result: $LD" >&5
melunko@47
  3431
echo "${ECHO_T}$LD" >&6
melunko@47
  3432
else
melunko@47
  3433
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  3434
echo "${ECHO_T}no" >&6
melunko@47
  3435
fi
melunko@47
  3436
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
melunko@47
  3437
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
melunko@47
  3438
   { (exit 1); exit 1; }; }
melunko@47
  3439
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
melunko@47
  3440
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
melunko@47
  3441
if test "${lt_cv_prog_gnu_ld+set}" = set; then
melunko@47
  3442
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  3443
else
melunko@47
  3444
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
melunko@47
  3445
case `$LD -v 2>&1 </dev/null` in
melunko@47
  3446
*GNU* | *'with BFD'*)
melunko@47
  3447
  lt_cv_prog_gnu_ld=yes
melunko@47
  3448
  ;;
melunko@47
  3449
*)
melunko@47
  3450
  lt_cv_prog_gnu_ld=no
melunko@47
  3451
  ;;
melunko@47
  3452
esac
melunko@47
  3453
fi
melunko@47
  3454
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
melunko@47
  3455
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
melunko@47
  3456
with_gnu_ld=$lt_cv_prog_gnu_ld
melunko@47
  3457
melunko@47
  3458
melunko@47
  3459
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
melunko@47
  3460
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
melunko@47
  3461
if test "${lt_cv_ld_reload_flag+set}" = set; then
melunko@47
  3462
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  3463
else
melunko@47
  3464
  lt_cv_ld_reload_flag='-r'
melunko@47
  3465
fi
melunko@47
  3466
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
melunko@47
  3467
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
melunko@47
  3468
reload_flag=$lt_cv_ld_reload_flag
melunko@47
  3469
case $reload_flag in
melunko@47
  3470
"" | " "*) ;;
melunko@47
  3471
*) reload_flag=" $reload_flag" ;;
melunko@47
  3472
esac
melunko@47
  3473
reload_cmds='$LD$reload_flag -o $output$reload_objs'
melunko@47
  3474
case $host_os in
melunko@47
  3475
  darwin*)
melunko@47
  3476
    if test "$GCC" = yes; then
melunko@47
  3477
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
melunko@47
  3478
    else
melunko@47
  3479
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
melunko@47
  3480
    fi
melunko@47
  3481
    ;;
melunko@47
  3482
esac
melunko@47
  3483
melunko@47
  3484
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
melunko@47
  3485
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
melunko@47
  3486
if test "${lt_cv_path_NM+set}" = set; then
melunko@47
  3487
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  3488
else
melunko@47
  3489
  if test -n "$NM"; then
melunko@47
  3490
  # Let the user override the test.
melunko@47
  3491
  lt_cv_path_NM="$NM"
melunko@47
  3492
else
melunko@47
  3493
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
melunko@47
  3494
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
melunko@47
  3495
    IFS="$lt_save_ifs"
melunko@47
  3496
    test -z "$ac_dir" && ac_dir=.
melunko@47
  3497
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
melunko@47
  3498
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
melunko@47
  3499
      # Check to see if the nm accepts a BSD-compat flag.
melunko@47
  3500
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
melunko@47
  3501
      #   nm: unknown option "B" ignored
melunko@47
  3502
      # Tru64's nm complains that /dev/null is an invalid object file
melunko@47
  3503
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
melunko@47
  3504
      */dev/null* | *'Invalid file or object type'*)
melunko@47
  3505
	lt_cv_path_NM="$tmp_nm -B"
melunko@47
  3506
	break
melunko@47
  3507
        ;;
melunko@47
  3508
      *)
melunko@47
  3509
	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
melunko@47
  3510
	*/dev/null*)
melunko@47
  3511
	  lt_cv_path_NM="$tmp_nm -p"
melunko@47
  3512
	  break
melunko@47
  3513
	  ;;
melunko@47
  3514
	*)
melunko@47
  3515
	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
melunko@47
  3516
	  continue # so that we can try to find one that supports BSD flags
melunko@47
  3517
	  ;;
melunko@47
  3518
	esac
melunko@47
  3519
      esac
melunko@47
  3520
    fi
melunko@47
  3521
  done
melunko@47
  3522
  IFS="$lt_save_ifs"
melunko@47
  3523
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
melunko@47
  3524
fi
melunko@47
  3525
fi
melunko@47
  3526
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
melunko@47
  3527
echo "${ECHO_T}$lt_cv_path_NM" >&6
melunko@47
  3528
NM="$lt_cv_path_NM"
melunko@47
  3529
melunko@47
  3530
echo "$as_me:$LINENO: checking whether ln -s works" >&5
melunko@47
  3531
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
melunko@47
  3532
LN_S=$as_ln_s
melunko@47
  3533
if test "$LN_S" = "ln -s"; then
melunko@47
  3534
  echo "$as_me:$LINENO: result: yes" >&5
melunko@47
  3535
echo "${ECHO_T}yes" >&6
melunko@47
  3536
else
melunko@47
  3537
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
melunko@47
  3538
echo "${ECHO_T}no, using $LN_S" >&6
melunko@47
  3539
fi
melunko@47
  3540
melunko@47
  3541
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
melunko@47
  3542
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
melunko@47
  3543
if test "${lt_cv_deplibs_check_method+set}" = set; then
melunko@47
  3544
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  3545
else
melunko@47
  3546
  lt_cv_file_magic_cmd='$MAGIC_CMD'
melunko@47
  3547
lt_cv_file_magic_test_file=
melunko@47
  3548
lt_cv_deplibs_check_method='unknown'
melunko@47
  3549
# Need to set the preceding variable on all platforms that support
melunko@47
  3550
# interlibrary dependencies.
melunko@47
  3551
# 'none' -- dependencies not supported.
melunko@47
  3552
# `unknown' -- same as none, but documents that we really don't know.
melunko@47
  3553
# 'pass_all' -- all dependencies passed with no checks.
melunko@47
  3554
# 'test_compile' -- check by making test program.
melunko@47
  3555
# 'file_magic [[regex]]' -- check by looking for files in library path
melunko@47
  3556
# which responds to the $file_magic_cmd with a given extended regex.
melunko@47
  3557
# If you have `file' or equivalent on your system and you're not sure
melunko@47
  3558
# whether `pass_all' will *always* work, you probably want this one.
melunko@47
  3559
melunko@47
  3560
case $host_os in
melunko@47
  3561
aix4* | aix5*)
melunko@47
  3562
  lt_cv_deplibs_check_method=pass_all
melunko@47
  3563
  ;;
melunko@47
  3564
melunko@47
  3565
beos*)
melunko@47
  3566
  lt_cv_deplibs_check_method=pass_all
melunko@47
  3567
  ;;
melunko@47
  3568
melunko@47
  3569
bsdi[45]*)
melunko@47
  3570
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
melunko@47
  3571
  lt_cv_file_magic_cmd='/usr/bin/file -L'
melunko@47
  3572
  lt_cv_file_magic_test_file=/shlib/libc.so
melunko@47
  3573
  ;;
melunko@47
  3574
melunko@47
  3575
cygwin*)
melunko@47
  3576
  # func_win32_libid is a shell function defined in ltmain.sh
melunko@47
  3577
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
melunko@47
  3578
  lt_cv_file_magic_cmd='func_win32_libid'
melunko@47
  3579
  ;;
melunko@47
  3580
melunko@47
  3581
mingw* | pw32*)
melunko@47
  3582
  # Base MSYS/MinGW do not provide the 'file' command needed by
melunko@47
  3583
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
melunko@47
  3584
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
melunko@47
  3585
  lt_cv_file_magic_cmd='$OBJDUMP -f'
melunko@47
  3586
  ;;
melunko@47
  3587
melunko@47
  3588
darwin* | rhapsody*)
melunko@47
  3589
  lt_cv_deplibs_check_method=pass_all
melunko@47
  3590
  ;;
melunko@47
  3591
melunko@47
  3592
freebsd* | kfreebsd*-gnu | dragonfly*)
melunko@47
  3593
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
melunko@47
  3594
    case $host_cpu in
melunko@47
  3595
    i*86 )
melunko@47
  3596
      # Not sure whether the presence of OpenBSD here was a mistake.
melunko@47
  3597
      # Let's accept both of them until this is cleared up.
melunko@47
  3598
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
melunko@47
  3599
      lt_cv_file_magic_cmd=/usr/bin/file
melunko@47
  3600
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
melunko@47
  3601
      ;;
melunko@47
  3602
    esac
melunko@47
  3603
  else
melunko@47
  3604
    lt_cv_deplibs_check_method=pass_all
melunko@47
  3605
  fi
melunko@47
  3606
  ;;
melunko@47
  3607
melunko@47
  3608
gnu*)
melunko@47
  3609
  lt_cv_deplibs_check_method=pass_all
melunko@47
  3610
  ;;
melunko@47
  3611
melunko@47
  3612
hpux10.20* | hpux11*)
melunko@47
  3613
  lt_cv_file_magic_cmd=/usr/bin/file
melunko@47
  3614
  case $host_cpu in
melunko@47
  3615
  ia64*)
melunko@47
  3616
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
melunko@47
  3617
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
melunko@47
  3618
    ;;
melunko@47
  3619
  hppa*64*)
melunko@47
  3620
    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]'
melunko@47
  3621
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
melunko@47
  3622
    ;;
melunko@47
  3623
  *)
melunko@47
  3624
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
melunko@47
  3625
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
melunko@47
  3626
    ;;
melunko@47
  3627
  esac
melunko@47
  3628
  ;;
melunko@47
  3629
melunko@47
  3630
irix5* | irix6* | nonstopux*)
melunko@47
  3631
  case $LD in
melunko@47
  3632
  *-32|*"-32 ") libmagic=32-bit;;
melunko@47
  3633
  *-n32|*"-n32 ") libmagic=N32;;
melunko@47
  3634
  *-64|*"-64 ") libmagic=64-bit;;
melunko@47
  3635
  *) libmagic=never-match;;
melunko@47
  3636
  esac
melunko@47
  3637
  lt_cv_deplibs_check_method=pass_all
melunko@47
  3638
  ;;
melunko@47
  3639
melunko@47
  3640
# This must be Linux ELF.
melunko@47
  3641
linux*)
melunko@47
  3642
  lt_cv_deplibs_check_method=pass_all
melunko@47
  3643
  ;;
melunko@47
  3644
melunko@47
  3645
netbsd*)
melunko@47
  3646
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
melunko@47
  3647
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
melunko@47
  3648
  else
melunko@47
  3649
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
melunko@47
  3650
  fi
melunko@47
  3651
  ;;
melunko@47
  3652
melunko@47
  3653
newos6*)
melunko@47
  3654
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
melunko@47
  3655
  lt_cv_file_magic_cmd=/usr/bin/file
melunko@47
  3656
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
melunko@47
  3657
  ;;
melunko@47
  3658
melunko@47
  3659
nto-qnx*)
melunko@47
  3660
  lt_cv_deplibs_check_method=unknown
melunko@47
  3661
  ;;
melunko@47
  3662
melunko@47
  3663
openbsd*)
melunko@47
  3664
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
melunko@47
  3665
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
melunko@47
  3666
  else
melunko@47
  3667
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
melunko@47
  3668
  fi
melunko@47
  3669
  ;;
melunko@47
  3670
melunko@47
  3671
osf3* | osf4* | osf5*)
melunko@47
  3672
  lt_cv_deplibs_check_method=pass_all
melunko@47
  3673
  ;;
melunko@47
  3674
melunko@47
  3675
sco3.2v5*)
melunko@47
  3676
  lt_cv_deplibs_check_method=pass_all
melunko@47
  3677
  ;;
melunko@47
  3678
melunko@47
  3679
solaris*)
melunko@47
  3680
  lt_cv_deplibs_check_method=pass_all
melunko@47
  3681
  ;;
melunko@47
  3682
melunko@47
  3683
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
melunko@47
  3684
  case $host_vendor in
melunko@47
  3685
  motorola)
melunko@47
  3686
    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]'
melunko@47
  3687
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
melunko@47
  3688
    ;;
melunko@47
  3689
  ncr)
melunko@47
  3690
    lt_cv_deplibs_check_method=pass_all
melunko@47
  3691
    ;;
melunko@47
  3692
  sequent)
melunko@47
  3693
    lt_cv_file_magic_cmd='/bin/file'
melunko@47
  3694
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
melunko@47
  3695
    ;;
melunko@47
  3696
  sni)
melunko@47
  3697
    lt_cv_file_magic_cmd='/bin/file'
melunko@47
  3698
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
melunko@47
  3699
    lt_cv_file_magic_test_file=/lib/libc.so
melunko@47
  3700
    ;;
melunko@47
  3701
  siemens)
melunko@47
  3702
    lt_cv_deplibs_check_method=pass_all
melunko@47
  3703
    ;;
melunko@47
  3704
  esac
melunko@47
  3705
  ;;
melunko@47
  3706
melunko@47
  3707
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
melunko@47
  3708
  lt_cv_deplibs_check_method=pass_all
melunko@47
  3709
  ;;
melunko@47
  3710
esac
melunko@47
  3711
melunko@47
  3712
fi
melunko@47
  3713
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
melunko@47
  3714
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
melunko@47
  3715
file_magic_cmd=$lt_cv_file_magic_cmd
melunko@47
  3716
deplibs_check_method=$lt_cv_deplibs_check_method
melunko@47
  3717
test -z "$deplibs_check_method" && deplibs_check_method=unknown
melunko@47
  3718
melunko@47
  3719
melunko@47
  3720
melunko@47
  3721
melunko@47
  3722
# If no C compiler was specified, use CC.
melunko@47
  3723
LTCC=${LTCC-"$CC"}
melunko@47
  3724
melunko@47
  3725
# Allow CC to be a program name with arguments.
melunko@47
  3726
compiler=$CC
melunko@47
  3727
melunko@47
  3728
melunko@47
  3729
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
melunko@47
  3730
if test "${enable_libtool_lock+set}" = set; then
melunko@47
  3731
  enableval="$enable_libtool_lock"
melunko@47
  3732
  
melunko@47
  3733
fi; 
melunko@47
  3734
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
melunko@47
  3735
melunko@47
  3736
# Some flags need to be propagated to the compiler or linker for good
melunko@47
  3737
# libtool support.
melunko@47
  3738
case $host in
melunko@47
  3739
ia64-*-hpux*)
melunko@47
  3740
  # Find out which ABI we are using.
melunko@47
  3741
  echo 'int i;' > conftest.$ac_ext
melunko@47
  3742
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  3743
  (eval $ac_compile) 2>&5
melunko@47
  3744
  ac_status=$?
melunko@47
  3745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3746
  (exit $ac_status); }; then
melunko@47
  3747
    case `/usr/bin/file conftest.$ac_objext` in
melunko@47
  3748
    *ELF-32*)
melunko@47
  3749
      HPUX_IA64_MODE="32"
melunko@47
  3750
      ;;
melunko@47
  3751
    *ELF-64*)
melunko@47
  3752
      HPUX_IA64_MODE="64"
melunko@47
  3753
      ;;
melunko@47
  3754
    esac
melunko@47
  3755
  fi
melunko@47
  3756
  rm -rf conftest*
melunko@47
  3757
  ;;
melunko@47
  3758
*-*-irix6*)
melunko@47
  3759
  # Find out which ABI we are using.
melunko@47
  3760
  echo '#line __oline__ "configure"' > conftest.$ac_ext
melunko@47
  3761
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  3762
  (eval $ac_compile) 2>&5
melunko@47
  3763
  ac_status=$?
melunko@47
  3764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3765
  (exit $ac_status); }; then
melunko@47
  3766
   if test "$lt_cv_prog_gnu_ld" = yes; then
melunko@47
  3767
    case `/usr/bin/file conftest.$ac_objext` in
melunko@47
  3768
    *32-bit*)
melunko@47
  3769
      LD="${LD-ld} -melf32bsmip"
melunko@47
  3770
      ;;
melunko@47
  3771
    *N32*)
melunko@47
  3772
      LD="${LD-ld} -melf32bmipn32"
melunko@47
  3773
      ;;
melunko@47
  3774
    *64-bit*)
melunko@47
  3775
      LD="${LD-ld} -melf64bmip"
melunko@47
  3776
      ;;
melunko@47
  3777
    esac
melunko@47
  3778
   else
melunko@47
  3779
    case `/usr/bin/file conftest.$ac_objext` in
melunko@47
  3780
    *32-bit*)
melunko@47
  3781
      LD="${LD-ld} -32"
melunko@47
  3782
      ;;
melunko@47
  3783
    *N32*)
melunko@47
  3784
      LD="${LD-ld} -n32"
melunko@47
  3785
      ;;
melunko@47
  3786
    *64-bit*)
melunko@47
  3787
      LD="${LD-ld} -64"
melunko@47
  3788
      ;;
melunko@47
  3789
    esac
melunko@47
  3790
   fi
melunko@47
  3791
  fi
melunko@47
  3792
  rm -rf conftest*
melunko@47
  3793
  ;;
melunko@47
  3794
melunko@47
  3795
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
melunko@47
  3796
  # Find out which ABI we are using.
melunko@47
  3797
  echo 'int i;' > conftest.$ac_ext
melunko@47
  3798
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  3799
  (eval $ac_compile) 2>&5
melunko@47
  3800
  ac_status=$?
melunko@47
  3801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3802
  (exit $ac_status); }; then
melunko@47
  3803
    case `/usr/bin/file conftest.o` in
melunko@47
  3804
    *32-bit*)
melunko@47
  3805
      case $host in
melunko@47
  3806
        x86_64-*linux*)
melunko@47
  3807
          LD="${LD-ld} -m elf_i386"
melunko@47
  3808
          ;;
melunko@47
  3809
        ppc64-*linux*|powerpc64-*linux*)
melunko@47
  3810
          LD="${LD-ld} -m elf32ppclinux"
melunko@47
  3811
          ;;
melunko@47
  3812
        s390x-*linux*)
melunko@47
  3813
          LD="${LD-ld} -m elf_s390"
melunko@47
  3814
          ;;
melunko@47
  3815
        sparc64-*linux*)
melunko@47
  3816
          LD="${LD-ld} -m elf32_sparc"
melunko@47
  3817
          ;;
melunko@47
  3818
      esac
melunko@47
  3819
      ;;
melunko@47
  3820
    *64-bit*)
melunko@47
  3821
      case $host in
melunko@47
  3822
        x86_64-*linux*)
melunko@47
  3823
          LD="${LD-ld} -m elf_x86_64"
melunko@47
  3824
          ;;
melunko@47
  3825
        ppc*-*linux*|powerpc*-*linux*)
melunko@47
  3826
          LD="${LD-ld} -m elf64ppc"
melunko@47
  3827
          ;;
melunko@47
  3828
        s390*-*linux*)
melunko@47
  3829
          LD="${LD-ld} -m elf64_s390"
melunko@47
  3830
          ;;
melunko@47
  3831
        sparc*-*linux*)
melunko@47
  3832
          LD="${LD-ld} -m elf64_sparc"
melunko@47
  3833
          ;;
melunko@47
  3834
      esac
melunko@47
  3835
      ;;
melunko@47
  3836
    esac
melunko@47
  3837
  fi
melunko@47
  3838
  rm -rf conftest*
melunko@47
  3839
  ;;
melunko@47
  3840
melunko@47
  3841
*-*-sco3.2v5*)
melunko@47
  3842
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
melunko@47
  3843
  SAVE_CFLAGS="$CFLAGS"
melunko@47
  3844
  CFLAGS="$CFLAGS -belf"
melunko@47
  3845
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
melunko@47
  3846
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
melunko@47
  3847
if test "${lt_cv_cc_needs_belf+set}" = set; then
melunko@47
  3848
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  3849
else
melunko@47
  3850
  ac_ext=c
melunko@47
  3851
ac_cpp='$CPP $CPPFLAGS'
melunko@47
  3852
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  3853
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  3854
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
  3855
melunko@47
  3856
     cat >conftest.$ac_ext <<_ACEOF
melunko@47
  3857
/* confdefs.h.  */
melunko@47
  3858
_ACEOF
melunko@47
  3859
cat confdefs.h >>conftest.$ac_ext
melunko@47
  3860
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  3861
/* end confdefs.h.  */
melunko@47
  3862
melunko@47
  3863
int
melunko@47
  3864
main ()
melunko@47
  3865
{
melunko@47
  3866
melunko@47
  3867
  ;
melunko@47
  3868
  return 0;
melunko@47
  3869
}
melunko@47
  3870
_ACEOF
melunko@47
  3871
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
  3872
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  3873
  (eval $ac_link) 2>conftest.er1
melunko@47
  3874
  ac_status=$?
melunko@47
  3875
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  3876
  rm -f conftest.er1
melunko@47
  3877
  cat conftest.err >&5
melunko@47
  3878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3879
  (exit $ac_status); } &&
melunko@47
  3880
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  3881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  3882
  (eval $ac_try) 2>&5
melunko@47
  3883
  ac_status=$?
melunko@47
  3884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3885
  (exit $ac_status); }; } &&
melunko@47
  3886
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
  3887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  3888
  (eval $ac_try) 2>&5
melunko@47
  3889
  ac_status=$?
melunko@47
  3890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3891
  (exit $ac_status); }; }; then
melunko@47
  3892
  lt_cv_cc_needs_belf=yes
melunko@47
  3893
else
melunko@47
  3894
  echo "$as_me: failed program was:" >&5
melunko@47
  3895
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  3896
melunko@47
  3897
lt_cv_cc_needs_belf=no
melunko@47
  3898
fi
melunko@47
  3899
rm -f conftest.err conftest.$ac_objext \
melunko@47
  3900
      conftest$ac_exeext conftest.$ac_ext
melunko@47
  3901
     ac_ext=c
melunko@47
  3902
ac_cpp='$CPP $CPPFLAGS'
melunko@47
  3903
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  3904
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  3905
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
  3906
melunko@47
  3907
fi
melunko@47
  3908
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
melunko@47
  3909
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
melunko@47
  3910
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
melunko@47
  3911
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
melunko@47
  3912
    CFLAGS="$SAVE_CFLAGS"
melunko@47
  3913
  fi
melunko@47
  3914
  ;;
melunko@47
  3915
melunko@47
  3916
esac
melunko@47
  3917
melunko@47
  3918
need_locks="$enable_libtool_lock"
melunko@47
  3919
melunko@47
  3920
melunko@47
  3921
ac_ext=c
melunko@47
  3922
ac_cpp='$CPP $CPPFLAGS'
melunko@47
  3923
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  3924
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  3925
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
  3926
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
melunko@47
  3927
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
melunko@47
  3928
# On Suns, sometimes $CPP names a directory.
melunko@47
  3929
if test -n "$CPP" && test -d "$CPP"; then
melunko@47
  3930
  CPP=
melunko@47
  3931
fi
melunko@47
  3932
if test -z "$CPP"; then
melunko@47
  3933
  if test "${ac_cv_prog_CPP+set}" = set; then
melunko@47
  3934
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  3935
else
melunko@47
  3936
      # Double quotes because CPP needs to be expanded
melunko@47
  3937
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
melunko@47
  3938
    do
melunko@47
  3939
      ac_preproc_ok=false
melunko@47
  3940
for ac_c_preproc_warn_flag in '' yes
melunko@47
  3941
do
melunko@47
  3942
  # Use a header file that comes with gcc, so configuring glibc
melunko@47
  3943
  # with a fresh cross-compiler works.
melunko@47
  3944
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
melunko@47
  3945
  # <limits.h> exists even on freestanding compilers.
melunko@47
  3946
  # On the NeXT, cc -E runs the code through the compiler's parser,
melunko@47
  3947
  # not just through cpp. "Syntax error" is here to catch this case.
melunko@47
  3948
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  3949
/* confdefs.h.  */
melunko@47
  3950
_ACEOF
melunko@47
  3951
cat confdefs.h >>conftest.$ac_ext
melunko@47
  3952
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  3953
/* end confdefs.h.  */
melunko@47
  3954
@%:@ifdef __STDC__
melunko@47
  3955
@%:@ include <limits.h>
melunko@47
  3956
@%:@else
melunko@47
  3957
@%:@ include <assert.h>
melunko@47
  3958
@%:@endif
melunko@47
  3959
		     Syntax error
melunko@47
  3960
_ACEOF
melunko@47
  3961
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
melunko@47
  3962
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
melunko@47
  3963
  ac_status=$?
melunko@47
  3964
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  3965
  rm -f conftest.er1
melunko@47
  3966
  cat conftest.err >&5
melunko@47
  3967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  3968
  (exit $ac_status); } >/dev/null; then
melunko@47
  3969
  if test -s conftest.err; then
melunko@47
  3970
    ac_cpp_err=$ac_c_preproc_warn_flag
melunko@47
  3971
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
melunko@47
  3972
  else
melunko@47
  3973
    ac_cpp_err=
melunko@47
  3974
  fi
melunko@47
  3975
else
melunko@47
  3976
  ac_cpp_err=yes
melunko@47
  3977
fi
melunko@47
  3978
if test -z "$ac_cpp_err"; then
melunko@47
  3979
  :
melunko@47
  3980
else
melunko@47
  3981
  echo "$as_me: failed program was:" >&5
melunko@47
  3982
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  3983
melunko@47
  3984
  # Broken: fails on valid input.
melunko@47
  3985
continue
melunko@47
  3986
fi
melunko@47
  3987
rm -f conftest.err conftest.$ac_ext
melunko@47
  3988
melunko@47
  3989
  # OK, works on sane cases.  Now check whether non-existent headers
melunko@47
  3990
  # can be detected and how.
melunko@47
  3991
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  3992
/* confdefs.h.  */
melunko@47
  3993
_ACEOF
melunko@47
  3994
cat confdefs.h >>conftest.$ac_ext
melunko@47
  3995
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  3996
/* end confdefs.h.  */
melunko@47
  3997
@%:@include <ac_nonexistent.h>
melunko@47
  3998
_ACEOF
melunko@47
  3999
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
melunko@47
  4000
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
melunko@47
  4001
  ac_status=$?
melunko@47
  4002
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  4003
  rm -f conftest.er1
melunko@47
  4004
  cat conftest.err >&5
melunko@47
  4005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4006
  (exit $ac_status); } >/dev/null; then
melunko@47
  4007
  if test -s conftest.err; then
melunko@47
  4008
    ac_cpp_err=$ac_c_preproc_warn_flag
melunko@47
  4009
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
melunko@47
  4010
  else
melunko@47
  4011
    ac_cpp_err=
melunko@47
  4012
  fi
melunko@47
  4013
else
melunko@47
  4014
  ac_cpp_err=yes
melunko@47
  4015
fi
melunko@47
  4016
if test -z "$ac_cpp_err"; then
melunko@47
  4017
  # Broken: success on invalid input.
melunko@47
  4018
continue
melunko@47
  4019
else
melunko@47
  4020
  echo "$as_me: failed program was:" >&5
melunko@47
  4021
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  4022
melunko@47
  4023
  # Passes both tests.
melunko@47
  4024
ac_preproc_ok=:
melunko@47
  4025
break
melunko@47
  4026
fi
melunko@47
  4027
rm -f conftest.err conftest.$ac_ext
melunko@47
  4028
melunko@47
  4029
done
melunko@47
  4030
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
melunko@47
  4031
rm -f conftest.err conftest.$ac_ext
melunko@47
  4032
if $ac_preproc_ok; then
melunko@47
  4033
  break
melunko@47
  4034
fi
melunko@47
  4035
melunko@47
  4036
    done
melunko@47
  4037
    ac_cv_prog_CPP=$CPP
melunko@47
  4038
  
melunko@47
  4039
fi
melunko@47
  4040
  CPP=$ac_cv_prog_CPP
melunko@47
  4041
else
melunko@47
  4042
  ac_cv_prog_CPP=$CPP
melunko@47
  4043
fi
melunko@47
  4044
echo "$as_me:$LINENO: result: $CPP" >&5
melunko@47
  4045
echo "${ECHO_T}$CPP" >&6
melunko@47
  4046
ac_preproc_ok=false
melunko@47
  4047
for ac_c_preproc_warn_flag in '' yes
melunko@47
  4048
do
melunko@47
  4049
  # Use a header file that comes with gcc, so configuring glibc
melunko@47
  4050
  # with a fresh cross-compiler works.
melunko@47
  4051
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
melunko@47
  4052
  # <limits.h> exists even on freestanding compilers.
melunko@47
  4053
  # On the NeXT, cc -E runs the code through the compiler's parser,
melunko@47
  4054
  # not just through cpp. "Syntax error" is here to catch this case.
melunko@47
  4055
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  4056
/* confdefs.h.  */
melunko@47
  4057
_ACEOF
melunko@47
  4058
cat confdefs.h >>conftest.$ac_ext
melunko@47
  4059
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  4060
/* end confdefs.h.  */
melunko@47
  4061
@%:@ifdef __STDC__
melunko@47
  4062
@%:@ include <limits.h>
melunko@47
  4063
@%:@else
melunko@47
  4064
@%:@ include <assert.h>
melunko@47
  4065
@%:@endif
melunko@47
  4066
		     Syntax error
melunko@47
  4067
_ACEOF
melunko@47
  4068
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
melunko@47
  4069
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
melunko@47
  4070
  ac_status=$?
melunko@47
  4071
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  4072
  rm -f conftest.er1
melunko@47
  4073
  cat conftest.err >&5
melunko@47
  4074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4075
  (exit $ac_status); } >/dev/null; then
melunko@47
  4076
  if test -s conftest.err; then
melunko@47
  4077
    ac_cpp_err=$ac_c_preproc_warn_flag
melunko@47
  4078
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
melunko@47
  4079
  else
melunko@47
  4080
    ac_cpp_err=
melunko@47
  4081
  fi
melunko@47
  4082
else
melunko@47
  4083
  ac_cpp_err=yes
melunko@47
  4084
fi
melunko@47
  4085
if test -z "$ac_cpp_err"; then
melunko@47
  4086
  :
melunko@47
  4087
else
melunko@47
  4088
  echo "$as_me: failed program was:" >&5
melunko@47
  4089
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  4090
melunko@47
  4091
  # Broken: fails on valid input.
melunko@47
  4092
continue
melunko@47
  4093
fi
melunko@47
  4094
rm -f conftest.err conftest.$ac_ext
melunko@47
  4095
melunko@47
  4096
  # OK, works on sane cases.  Now check whether non-existent headers
melunko@47
  4097
  # can be detected and how.
melunko@47
  4098
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  4099
/* confdefs.h.  */
melunko@47
  4100
_ACEOF
melunko@47
  4101
cat confdefs.h >>conftest.$ac_ext
melunko@47
  4102
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  4103
/* end confdefs.h.  */
melunko@47
  4104
@%:@include <ac_nonexistent.h>
melunko@47
  4105
_ACEOF
melunko@47
  4106
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
melunko@47
  4107
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
melunko@47
  4108
  ac_status=$?
melunko@47
  4109
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  4110
  rm -f conftest.er1
melunko@47
  4111
  cat conftest.err >&5
melunko@47
  4112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4113
  (exit $ac_status); } >/dev/null; then
melunko@47
  4114
  if test -s conftest.err; then
melunko@47
  4115
    ac_cpp_err=$ac_c_preproc_warn_flag
melunko@47
  4116
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
melunko@47
  4117
  else
melunko@47
  4118
    ac_cpp_err=
melunko@47
  4119
  fi
melunko@47
  4120
else
melunko@47
  4121
  ac_cpp_err=yes
melunko@47
  4122
fi
melunko@47
  4123
if test -z "$ac_cpp_err"; then
melunko@47
  4124
  # Broken: success on invalid input.
melunko@47
  4125
continue
melunko@47
  4126
else
melunko@47
  4127
  echo "$as_me: failed program was:" >&5
melunko@47
  4128
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  4129
melunko@47
  4130
  # Passes both tests.
melunko@47
  4131
ac_preproc_ok=:
melunko@47
  4132
break
melunko@47
  4133
fi
melunko@47
  4134
rm -f conftest.err conftest.$ac_ext
melunko@47
  4135
melunko@47
  4136
done
melunko@47
  4137
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
melunko@47
  4138
rm -f conftest.err conftest.$ac_ext
melunko@47
  4139
if $ac_preproc_ok; then
melunko@47
  4140
  :
melunko@47
  4141
else
melunko@47
  4142
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
melunko@47
  4143
See \`config.log' for more details." >&5
melunko@47
  4144
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
melunko@47
  4145
See \`config.log' for more details." >&2;}
melunko@47
  4146
   { (exit 1); exit 1; }; }
melunko@47
  4147
fi
melunko@47
  4148
melunko@47
  4149
ac_ext=c
melunko@47
  4150
ac_cpp='$CPP $CPPFLAGS'
melunko@47
  4151
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  4152
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  4153
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
  4154
melunko@47
  4155
melunko@47
  4156
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
melunko@47
  4157
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
melunko@47
  4158
if test "${ac_cv_header_stdc+set}" = set; then
melunko@47
  4159
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  4160
else
melunko@47
  4161
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  4162
/* confdefs.h.  */
melunko@47
  4163
_ACEOF
melunko@47
  4164
cat confdefs.h >>conftest.$ac_ext
melunko@47
  4165
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  4166
/* end confdefs.h.  */
melunko@47
  4167
#include <stdlib.h>
melunko@47
  4168
#include <stdarg.h>
melunko@47
  4169
#include <string.h>
melunko@47
  4170
#include <float.h>
melunko@47
  4171
melunko@47
  4172
int
melunko@47
  4173
main ()
melunko@47
  4174
{
melunko@47
  4175
melunko@47
  4176
  ;
melunko@47
  4177
  return 0;
melunko@47
  4178
}
melunko@47
  4179
_ACEOF
melunko@47
  4180
rm -f conftest.$ac_objext
melunko@47
  4181
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  4182
  (eval $ac_compile) 2>conftest.er1
melunko@47
  4183
  ac_status=$?
melunko@47
  4184
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  4185
  rm -f conftest.er1
melunko@47
  4186
  cat conftest.err >&5
melunko@47
  4187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4188
  (exit $ac_status); } &&
melunko@47
  4189
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  4190
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4191
  (eval $ac_try) 2>&5
melunko@47
  4192
  ac_status=$?
melunko@47
  4193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4194
  (exit $ac_status); }; } &&
melunko@47
  4195
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  4196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4197
  (eval $ac_try) 2>&5
melunko@47
  4198
  ac_status=$?
melunko@47
  4199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4200
  (exit $ac_status); }; }; then
melunko@47
  4201
  ac_cv_header_stdc=yes
melunko@47
  4202
else
melunko@47
  4203
  echo "$as_me: failed program was:" >&5
melunko@47
  4204
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  4205
melunko@47
  4206
ac_cv_header_stdc=no
melunko@47
  4207
fi
melunko@47
  4208
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
  4209
melunko@47
  4210
if test $ac_cv_header_stdc = yes; then
melunko@47
  4211
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
melunko@47
  4212
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  4213
/* confdefs.h.  */
melunko@47
  4214
_ACEOF
melunko@47
  4215
cat confdefs.h >>conftest.$ac_ext
melunko@47
  4216
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  4217
/* end confdefs.h.  */
melunko@47
  4218
#include <string.h>
melunko@47
  4219
melunko@47
  4220
_ACEOF
melunko@47
  4221
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
melunko@47
  4222
  $EGREP "memchr" >/dev/null 2>&1; then
melunko@47
  4223
  :
melunko@47
  4224
else
melunko@47
  4225
  ac_cv_header_stdc=no
melunko@47
  4226
fi
melunko@47
  4227
rm -f conftest*
melunko@47
  4228
melunko@47
  4229
fi
melunko@47
  4230
melunko@47
  4231
if test $ac_cv_header_stdc = yes; then
melunko@47
  4232
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
melunko@47
  4233
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  4234
/* confdefs.h.  */
melunko@47
  4235
_ACEOF
melunko@47
  4236
cat confdefs.h >>conftest.$ac_ext
melunko@47
  4237
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  4238
/* end confdefs.h.  */
melunko@47
  4239
#include <stdlib.h>
melunko@47
  4240
melunko@47
  4241
_ACEOF
melunko@47
  4242
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
melunko@47
  4243
  $EGREP "free" >/dev/null 2>&1; then
melunko@47
  4244
  :
melunko@47
  4245
else
melunko@47
  4246
  ac_cv_header_stdc=no
melunko@47
  4247
fi
melunko@47
  4248
rm -f conftest*
melunko@47
  4249
melunko@47
  4250
fi
melunko@47
  4251
melunko@47
  4252
if test $ac_cv_header_stdc = yes; then
melunko@47
  4253
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
melunko@47
  4254
  if test "$cross_compiling" = yes; then
melunko@47
  4255
  :
melunko@47
  4256
else
melunko@47
  4257
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  4258
/* confdefs.h.  */
melunko@47
  4259
_ACEOF
melunko@47
  4260
cat confdefs.h >>conftest.$ac_ext
melunko@47
  4261
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  4262
/* end confdefs.h.  */
melunko@47
  4263
#include <ctype.h>
melunko@47
  4264
#if ((' ' & 0x0FF) == 0x020)
melunko@47
  4265
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
melunko@47
  4266
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
melunko@47
  4267
#else
melunko@47
  4268
# define ISLOWER(c) \
melunko@47
  4269
		   (('a' <= (c) && (c) <= 'i') \
melunko@47
  4270
		     || ('j' <= (c) && (c) <= 'r') \
melunko@47
  4271
		     || ('s' <= (c) && (c) <= 'z'))
melunko@47
  4272
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
melunko@47
  4273
#endif
melunko@47
  4274
melunko@47
  4275
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
melunko@47
  4276
int
melunko@47
  4277
main ()
melunko@47
  4278
{
melunko@47
  4279
  int i;
melunko@47
  4280
  for (i = 0; i < 256; i++)
melunko@47
  4281
    if (XOR (islower (i), ISLOWER (i))
melunko@47
  4282
	|| toupper (i) != TOUPPER (i))
melunko@47
  4283
      exit(2);
melunko@47
  4284
  exit (0);
melunko@47
  4285
}
melunko@47
  4286
_ACEOF
melunko@47
  4287
rm -f conftest$ac_exeext
melunko@47
  4288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  4289
  (eval $ac_link) 2>&5
melunko@47
  4290
  ac_status=$?
melunko@47
  4291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4292
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
melunko@47
  4293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4294
  (eval $ac_try) 2>&5
melunko@47
  4295
  ac_status=$?
melunko@47
  4296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4297
  (exit $ac_status); }; }; then
melunko@47
  4298
  :
melunko@47
  4299
else
melunko@47
  4300
  echo "$as_me: program exited with status $ac_status" >&5
melunko@47
  4301
echo "$as_me: failed program was:" >&5
melunko@47
  4302
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  4303
melunko@47
  4304
( exit $ac_status )
melunko@47
  4305
ac_cv_header_stdc=no
melunko@47
  4306
fi
melunko@47
  4307
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
melunko@47
  4308
fi
melunko@47
  4309
fi
melunko@47
  4310
fi
melunko@47
  4311
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
melunko@47
  4312
echo "${ECHO_T}$ac_cv_header_stdc" >&6
melunko@47
  4313
if test $ac_cv_header_stdc = yes; then
melunko@47
  4314
  
melunko@47
  4315
cat >>confdefs.h <<\_ACEOF
melunko@47
  4316
@%:@define STDC_HEADERS 1
melunko@47
  4317
_ACEOF
melunko@47
  4318
melunko@47
  4319
fi
melunko@47
  4320
melunko@47
  4321
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
melunko@47
  4322
melunko@47
  4323
melunko@47
  4324
melunko@47
  4325
melunko@47
  4326
melunko@47
  4327
melunko@47
  4328
melunko@47
  4329
melunko@47
  4330
melunko@47
  4331
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
melunko@47
  4332
		  inttypes.h stdint.h unistd.h
melunko@47
  4333
do
melunko@47
  4334
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
melunko@47
  4335
echo "$as_me:$LINENO: checking for $ac_header" >&5
melunko@47
  4336
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
melunko@47
  4337
if eval "test \"\${$as_ac_Header+set}\" = set"; then
melunko@47
  4338
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  4339
else
melunko@47
  4340
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  4341
/* confdefs.h.  */
melunko@47
  4342
_ACEOF
melunko@47
  4343
cat confdefs.h >>conftest.$ac_ext
melunko@47
  4344
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  4345
/* end confdefs.h.  */
melunko@47
  4346
$ac_includes_default
melunko@47
  4347
melunko@47
  4348
@%:@include <$ac_header>
melunko@47
  4349
_ACEOF
melunko@47
  4350
rm -f conftest.$ac_objext
melunko@47
  4351
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  4352
  (eval $ac_compile) 2>conftest.er1
melunko@47
  4353
  ac_status=$?
melunko@47
  4354
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  4355
  rm -f conftest.er1
melunko@47
  4356
  cat conftest.err >&5
melunko@47
  4357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4358
  (exit $ac_status); } &&
melunko@47
  4359
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  4360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4361
  (eval $ac_try) 2>&5
melunko@47
  4362
  ac_status=$?
melunko@47
  4363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4364
  (exit $ac_status); }; } &&
melunko@47
  4365
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  4366
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4367
  (eval $ac_try) 2>&5
melunko@47
  4368
  ac_status=$?
melunko@47
  4369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4370
  (exit $ac_status); }; }; then
melunko@47
  4371
  eval "$as_ac_Header=yes"
melunko@47
  4372
else
melunko@47
  4373
  echo "$as_me: failed program was:" >&5
melunko@47
  4374
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  4375
melunko@47
  4376
eval "$as_ac_Header=no"
melunko@47
  4377
fi
melunko@47
  4378
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
  4379
fi
melunko@47
  4380
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
melunko@47
  4381
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
melunko@47
  4382
if test `eval echo '${'$as_ac_Header'}'` = yes; then
melunko@47
  4383
  cat >>confdefs.h <<_ACEOF
melunko@47
  4384
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
melunko@47
  4385
_ACEOF
melunko@47
  4386
 
melunko@47
  4387
fi
melunko@47
  4388
melunko@47
  4389
done
melunko@47
  4390
melunko@47
  4391
melunko@47
  4392
melunko@47
  4393
for ac_header in dlfcn.h
melunko@47
  4394
do
melunko@47
  4395
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
melunko@47
  4396
if eval "test \"\${$as_ac_Header+set}\" = set"; then
melunko@47
  4397
  echo "$as_me:$LINENO: checking for $ac_header" >&5
melunko@47
  4398
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
melunko@47
  4399
if eval "test \"\${$as_ac_Header+set}\" = set"; then
melunko@47
  4400
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  4401
fi
melunko@47
  4402
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
melunko@47
  4403
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
melunko@47
  4404
else
melunko@47
  4405
  # Is the header compilable?
melunko@47
  4406
echo "$as_me:$LINENO: checking $ac_header usability" >&5
melunko@47
  4407
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
melunko@47
  4408
cat >conftest.$ac_ext <<_ACEOF
melunko@47
  4409
/* confdefs.h.  */
melunko@47
  4410
_ACEOF
melunko@47
  4411
cat confdefs.h >>conftest.$ac_ext
melunko@47
  4412
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  4413
/* end confdefs.h.  */
melunko@47
  4414
$ac_includes_default
melunko@47
  4415
@%:@include <$ac_header>
melunko@47
  4416
_ACEOF
melunko@47
  4417
rm -f conftest.$ac_objext
melunko@47
  4418
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  4419
  (eval $ac_compile) 2>conftest.er1
melunko@47
  4420
  ac_status=$?
melunko@47
  4421
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  4422
  rm -f conftest.er1
melunko@47
  4423
  cat conftest.err >&5
melunko@47
  4424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4425
  (exit $ac_status); } &&
melunko@47
  4426
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  4427
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4428
  (eval $ac_try) 2>&5
melunko@47
  4429
  ac_status=$?
melunko@47
  4430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4431
  (exit $ac_status); }; } &&
melunko@47
  4432
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  4433
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4434
  (eval $ac_try) 2>&5
melunko@47
  4435
  ac_status=$?
melunko@47
  4436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4437
  (exit $ac_status); }; }; then
melunko@47
  4438
  ac_header_compiler=yes
melunko@47
  4439
else
melunko@47
  4440
  echo "$as_me: failed program was:" >&5
melunko@47
  4441
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  4442
melunko@47
  4443
ac_header_compiler=no
melunko@47
  4444
fi
melunko@47
  4445
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
  4446
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
melunko@47
  4447
echo "${ECHO_T}$ac_header_compiler" >&6
melunko@47
  4448
melunko@47
  4449
# Is the header present?
melunko@47
  4450
echo "$as_me:$LINENO: checking $ac_header presence" >&5
melunko@47
  4451
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
melunko@47
  4452
cat >conftest.$ac_ext <<_ACEOF
melunko@47
  4453
/* confdefs.h.  */
melunko@47
  4454
_ACEOF
melunko@47
  4455
cat confdefs.h >>conftest.$ac_ext
melunko@47
  4456
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  4457
/* end confdefs.h.  */
melunko@47
  4458
@%:@include <$ac_header>
melunko@47
  4459
_ACEOF
melunko@47
  4460
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
melunko@47
  4461
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
melunko@47
  4462
  ac_status=$?
melunko@47
  4463
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  4464
  rm -f conftest.er1
melunko@47
  4465
  cat conftest.err >&5
melunko@47
  4466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4467
  (exit $ac_status); } >/dev/null; then
melunko@47
  4468
  if test -s conftest.err; then
melunko@47
  4469
    ac_cpp_err=$ac_c_preproc_warn_flag
melunko@47
  4470
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
melunko@47
  4471
  else
melunko@47
  4472
    ac_cpp_err=
melunko@47
  4473
  fi
melunko@47
  4474
else
melunko@47
  4475
  ac_cpp_err=yes
melunko@47
  4476
fi
melunko@47
  4477
if test -z "$ac_cpp_err"; then
melunko@47
  4478
  ac_header_preproc=yes
melunko@47
  4479
else
melunko@47
  4480
  echo "$as_me: failed program was:" >&5
melunko@47
  4481
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  4482
melunko@47
  4483
  ac_header_preproc=no
melunko@47
  4484
fi
melunko@47
  4485
rm -f conftest.err conftest.$ac_ext
melunko@47
  4486
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
melunko@47
  4487
echo "${ECHO_T}$ac_header_preproc" >&6
melunko@47
  4488
melunko@47
  4489
# So?  What about this header?
melunko@47
  4490
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
melunko@47
  4491
  yes:no: )
melunko@47
  4492
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
melunko@47
  4493
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
melunko@47
  4494
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
melunko@47
  4495
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
melunko@47
  4496
    ac_header_preproc=yes
melunko@47
  4497
    ;;
melunko@47
  4498
  no:yes:* )
melunko@47
  4499
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
melunko@47
  4500
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
melunko@47
  4501
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
melunko@47
  4502
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
melunko@47
  4503
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
melunko@47
  4504
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
melunko@47
  4505
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
melunko@47
  4506
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
melunko@47
  4507
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
melunko@47
  4508
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
melunko@47
  4509
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
melunko@47
  4510
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
melunko@47
  4511
    (
melunko@47
  4512
      cat <<\_ASBOX
melunko@47
  4513
@%:@@%:@ ------------------------------------------ @%:@@%:@
melunko@47
  4514
@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
melunko@47
  4515
@%:@@%:@ ------------------------------------------ @%:@@%:@
melunko@47
  4516
_ASBOX
melunko@47
  4517
    ) |
melunko@47
  4518
      sed "s/^/$as_me: WARNING:     /" >&2
melunko@47
  4519
    ;;
melunko@47
  4520
esac
melunko@47
  4521
echo "$as_me:$LINENO: checking for $ac_header" >&5
melunko@47
  4522
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
melunko@47
  4523
if eval "test \"\${$as_ac_Header+set}\" = set"; then
melunko@47
  4524
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  4525
else
melunko@47
  4526
  eval "$as_ac_Header=\$ac_header_preproc"
melunko@47
  4527
fi
melunko@47
  4528
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
melunko@47
  4529
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
melunko@47
  4530
melunko@47
  4531
fi
melunko@47
  4532
if test `eval echo '${'$as_ac_Header'}'` = yes; then
melunko@47
  4533
  cat >>confdefs.h <<_ACEOF
melunko@47
  4534
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
melunko@47
  4535
_ACEOF
melunko@47
  4536
 
melunko@47
  4537
fi
melunko@47
  4538
melunko@47
  4539
done
melunko@47
  4540
melunko@47
  4541
ac_ext=cc
melunko@47
  4542
ac_cpp='$CXXCPP $CPPFLAGS'
melunko@47
  4543
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  4544
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  4545
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
melunko@47
  4546
if test -n "$ac_tool_prefix"; then
melunko@47
  4547
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
melunko@47
  4548
  do
melunko@47
  4549
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
melunko@47
  4550
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
melunko@47
  4551
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  4552
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  4553
if test "${ac_cv_prog_CXX+set}" = set; then
melunko@47
  4554
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  4555
else
melunko@47
  4556
  if test -n "$CXX"; then
melunko@47
  4557
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
melunko@47
  4558
else
melunko@47
  4559
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  4560
for as_dir in $PATH
melunko@47
  4561
do
melunko@47
  4562
  IFS=$as_save_IFS
melunko@47
  4563
  test -z "$as_dir" && as_dir=.
melunko@47
  4564
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  4565
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  4566
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
melunko@47
  4567
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  4568
    break 2
melunko@47
  4569
  fi
melunko@47
  4570
done
melunko@47
  4571
done
melunko@47
  4572
melunko@47
  4573
fi
melunko@47
  4574
fi
melunko@47
  4575
CXX=$ac_cv_prog_CXX
melunko@47
  4576
if test -n "$CXX"; then
melunko@47
  4577
  echo "$as_me:$LINENO: result: $CXX" >&5
melunko@47
  4578
echo "${ECHO_T}$CXX" >&6
melunko@47
  4579
else
melunko@47
  4580
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  4581
echo "${ECHO_T}no" >&6
melunko@47
  4582
fi
melunko@47
  4583
melunko@47
  4584
    test -n "$CXX" && break
melunko@47
  4585
  done
melunko@47
  4586
fi
melunko@47
  4587
if test -z "$CXX"; then
melunko@47
  4588
  ac_ct_CXX=$CXX
melunko@47
  4589
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
melunko@47
  4590
do
melunko@47
  4591
  # Extract the first word of "$ac_prog", so it can be a program name with args.
melunko@47
  4592
set dummy $ac_prog; ac_word=$2
melunko@47
  4593
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  4594
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  4595
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
melunko@47
  4596
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  4597
else
melunko@47
  4598
  if test -n "$ac_ct_CXX"; then
melunko@47
  4599
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
melunko@47
  4600
else
melunko@47
  4601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  4602
for as_dir in $PATH
melunko@47
  4603
do
melunko@47
  4604
  IFS=$as_save_IFS
melunko@47
  4605
  test -z "$as_dir" && as_dir=.
melunko@47
  4606
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  4607
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  4608
    ac_cv_prog_ac_ct_CXX="$ac_prog"
melunko@47
  4609
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  4610
    break 2
melunko@47
  4611
  fi
melunko@47
  4612
done
melunko@47
  4613
done
melunko@47
  4614
melunko@47
  4615
fi
melunko@47
  4616
fi
melunko@47
  4617
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
melunko@47
  4618
if test -n "$ac_ct_CXX"; then
melunko@47
  4619
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
melunko@47
  4620
echo "${ECHO_T}$ac_ct_CXX" >&6
melunko@47
  4621
else
melunko@47
  4622
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  4623
echo "${ECHO_T}no" >&6
melunko@47
  4624
fi
melunko@47
  4625
melunko@47
  4626
  test -n "$ac_ct_CXX" && break
melunko@47
  4627
done
melunko@47
  4628
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
melunko@47
  4629
melunko@47
  4630
  CXX=$ac_ct_CXX
melunko@47
  4631
fi
melunko@47
  4632
melunko@47
  4633
melunko@47
  4634
# Provide some information about the compiler.
melunko@47
  4635
echo "$as_me:$LINENO:" \
melunko@47
  4636
     "checking for C++ compiler version" >&5
melunko@47
  4637
ac_compiler=`set X $ac_compile; echo $2`
melunko@47
  4638
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
melunko@47
  4639
  (eval $ac_compiler --version </dev/null >&5) 2>&5
melunko@47
  4640
  ac_status=$?
melunko@47
  4641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4642
  (exit $ac_status); }
melunko@47
  4643
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
melunko@47
  4644
  (eval $ac_compiler -v </dev/null >&5) 2>&5
melunko@47
  4645
  ac_status=$?
melunko@47
  4646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4647
  (exit $ac_status); }
melunko@47
  4648
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
melunko@47
  4649
  (eval $ac_compiler -V </dev/null >&5) 2>&5
melunko@47
  4650
  ac_status=$?
melunko@47
  4651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4652
  (exit $ac_status); }
melunko@47
  4653
melunko@47
  4654
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
melunko@47
  4655
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
melunko@47
  4656
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
melunko@47
  4657
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  4658
else
melunko@47
  4659
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  4660
/* confdefs.h.  */
melunko@47
  4661
_ACEOF
melunko@47
  4662
cat confdefs.h >>conftest.$ac_ext
melunko@47
  4663
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  4664
/* end confdefs.h.  */
melunko@47
  4665
melunko@47
  4666
int
melunko@47
  4667
main ()
melunko@47
  4668
{
melunko@47
  4669
#ifndef __GNUC__
melunko@47
  4670
       choke me
melunko@47
  4671
#endif
melunko@47
  4672
melunko@47
  4673
  ;
melunko@47
  4674
  return 0;
melunko@47
  4675
}
melunko@47
  4676
_ACEOF
melunko@47
  4677
rm -f conftest.$ac_objext
melunko@47
  4678
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  4679
  (eval $ac_compile) 2>conftest.er1
melunko@47
  4680
  ac_status=$?
melunko@47
  4681
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  4682
  rm -f conftest.er1
melunko@47
  4683
  cat conftest.err >&5
melunko@47
  4684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4685
  (exit $ac_status); } &&
melunko@47
  4686
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
  4687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4688
  (eval $ac_try) 2>&5
melunko@47
  4689
  ac_status=$?
melunko@47
  4690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4691
  (exit $ac_status); }; } &&
melunko@47
  4692
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  4693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4694
  (eval $ac_try) 2>&5
melunko@47
  4695
  ac_status=$?
melunko@47
  4696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4697
  (exit $ac_status); }; }; then
melunko@47
  4698
  ac_compiler_gnu=yes
melunko@47
  4699
else
melunko@47
  4700
  echo "$as_me: failed program was:" >&5
melunko@47
  4701
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  4702
melunko@47
  4703
ac_compiler_gnu=no
melunko@47
  4704
fi
melunko@47
  4705
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
  4706
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
melunko@47
  4707
melunko@47
  4708
fi
melunko@47
  4709
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
melunko@47
  4710
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
melunko@47
  4711
GXX=`test $ac_compiler_gnu = yes && echo yes`
melunko@47
  4712
ac_test_CXXFLAGS=${CXXFLAGS+set}
melunko@47
  4713
ac_save_CXXFLAGS=$CXXFLAGS
melunko@47
  4714
CXXFLAGS="-g"
melunko@47
  4715
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
melunko@47
  4716
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
melunko@47
  4717
if test "${ac_cv_prog_cxx_g+set}" = set; then
melunko@47
  4718
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  4719
else
melunko@47
  4720
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  4721
/* confdefs.h.  */
melunko@47
  4722
_ACEOF
melunko@47
  4723
cat confdefs.h >>conftest.$ac_ext
melunko@47
  4724
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  4725
/* end confdefs.h.  */
melunko@47
  4726
melunko@47
  4727
int
melunko@47
  4728
main ()
melunko@47
  4729
{
melunko@47
  4730
melunko@47
  4731
  ;
melunko@47
  4732
  return 0;
melunko@47
  4733
}
melunko@47
  4734
_ACEOF
melunko@47
  4735
rm -f conftest.$ac_objext
melunko@47
  4736
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  4737
  (eval $ac_compile) 2>conftest.er1
melunko@47
  4738
  ac_status=$?
melunko@47
  4739
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  4740
  rm -f conftest.er1
melunko@47
  4741
  cat conftest.err >&5
melunko@47
  4742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4743
  (exit $ac_status); } &&
melunko@47
  4744
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
  4745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4746
  (eval $ac_try) 2>&5
melunko@47
  4747
  ac_status=$?
melunko@47
  4748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4749
  (exit $ac_status); }; } &&
melunko@47
  4750
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  4751
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4752
  (eval $ac_try) 2>&5
melunko@47
  4753
  ac_status=$?
melunko@47
  4754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4755
  (exit $ac_status); }; }; then
melunko@47
  4756
  ac_cv_prog_cxx_g=yes
melunko@47
  4757
else
melunko@47
  4758
  echo "$as_me: failed program was:" >&5
melunko@47
  4759
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  4760
melunko@47
  4761
ac_cv_prog_cxx_g=no
melunko@47
  4762
fi
melunko@47
  4763
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
  4764
fi
melunko@47
  4765
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
melunko@47
  4766
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
melunko@47
  4767
if test "$ac_test_CXXFLAGS" = set; then
melunko@47
  4768
  CXXFLAGS=$ac_save_CXXFLAGS
melunko@47
  4769
elif test $ac_cv_prog_cxx_g = yes; then
melunko@47
  4770
  if test "$GXX" = yes; then
melunko@47
  4771
    CXXFLAGS="-g -O2"
melunko@47
  4772
  else
melunko@47
  4773
    CXXFLAGS="-g"
melunko@47
  4774
  fi
melunko@47
  4775
else
melunko@47
  4776
  if test "$GXX" = yes; then
melunko@47
  4777
    CXXFLAGS="-O2"
melunko@47
  4778
  else
melunko@47
  4779
    CXXFLAGS=
melunko@47
  4780
  fi
melunko@47
  4781
fi
melunko@47
  4782
for ac_declaration in \
melunko@47
  4783
   '' \
melunko@47
  4784
   'extern "C" void std::exit (int) throw (); using std::exit;' \
melunko@47
  4785
   'extern "C" void std::exit (int); using std::exit;' \
melunko@47
  4786
   'extern "C" void exit (int) throw ();' \
melunko@47
  4787
   'extern "C" void exit (int);' \
melunko@47
  4788
   'void exit (int);'
melunko@47
  4789
do
melunko@47
  4790
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  4791
/* confdefs.h.  */
melunko@47
  4792
_ACEOF
melunko@47
  4793
cat confdefs.h >>conftest.$ac_ext
melunko@47
  4794
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  4795
/* end confdefs.h.  */
melunko@47
  4796
$ac_declaration
melunko@47
  4797
@%:@include <stdlib.h>
melunko@47
  4798
int
melunko@47
  4799
main ()
melunko@47
  4800
{
melunko@47
  4801
exit (42);
melunko@47
  4802
  ;
melunko@47
  4803
  return 0;
melunko@47
  4804
}
melunko@47
  4805
_ACEOF
melunko@47
  4806
rm -f conftest.$ac_objext
melunko@47
  4807
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  4808
  (eval $ac_compile) 2>conftest.er1
melunko@47
  4809
  ac_status=$?
melunko@47
  4810
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  4811
  rm -f conftest.er1
melunko@47
  4812
  cat conftest.err >&5
melunko@47
  4813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4814
  (exit $ac_status); } &&
melunko@47
  4815
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
  4816
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4817
  (eval $ac_try) 2>&5
melunko@47
  4818
  ac_status=$?
melunko@47
  4819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4820
  (exit $ac_status); }; } &&
melunko@47
  4821
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  4822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4823
  (eval $ac_try) 2>&5
melunko@47
  4824
  ac_status=$?
melunko@47
  4825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4826
  (exit $ac_status); }; }; then
melunko@47
  4827
  :
melunko@47
  4828
else
melunko@47
  4829
  echo "$as_me: failed program was:" >&5
melunko@47
  4830
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  4831
melunko@47
  4832
continue
melunko@47
  4833
fi
melunko@47
  4834
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
  4835
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  4836
/* confdefs.h.  */
melunko@47
  4837
_ACEOF
melunko@47
  4838
cat confdefs.h >>conftest.$ac_ext
melunko@47
  4839
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  4840
/* end confdefs.h.  */
melunko@47
  4841
$ac_declaration
melunko@47
  4842
int
melunko@47
  4843
main ()
melunko@47
  4844
{
melunko@47
  4845
exit (42);
melunko@47
  4846
  ;
melunko@47
  4847
  return 0;
melunko@47
  4848
}
melunko@47
  4849
_ACEOF
melunko@47
  4850
rm -f conftest.$ac_objext
melunko@47
  4851
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  4852
  (eval $ac_compile) 2>conftest.er1
melunko@47
  4853
  ac_status=$?
melunko@47
  4854
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  4855
  rm -f conftest.er1
melunko@47
  4856
  cat conftest.err >&5
melunko@47
  4857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4858
  (exit $ac_status); } &&
melunko@47
  4859
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
  4860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4861
  (eval $ac_try) 2>&5
melunko@47
  4862
  ac_status=$?
melunko@47
  4863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4864
  (exit $ac_status); }; } &&
melunko@47
  4865
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  4866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  4867
  (eval $ac_try) 2>&5
melunko@47
  4868
  ac_status=$?
melunko@47
  4869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  4870
  (exit $ac_status); }; }; then
melunko@47
  4871
  break
melunko@47
  4872
else
melunko@47
  4873
  echo "$as_me: failed program was:" >&5
melunko@47
  4874
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  4875
melunko@47
  4876
fi
melunko@47
  4877
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
  4878
done
melunko@47
  4879
rm -f conftest*
melunko@47
  4880
if test -n "$ac_declaration"; then
melunko@47
  4881
  echo '#ifdef __cplusplus' >>confdefs.h
melunko@47
  4882
  echo $ac_declaration      >>confdefs.h
melunko@47
  4883
  echo '#endif'             >>confdefs.h
melunko@47
  4884
fi
melunko@47
  4885
melunko@47
  4886
ac_ext=cc
melunko@47
  4887
ac_cpp='$CXXCPP $CPPFLAGS'
melunko@47
  4888
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  4889
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  4890
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
melunko@47
  4891
melunko@47
  4892
depcc="$CXX"  am_compiler_list=
melunko@47
  4893
melunko@47
  4894
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
melunko@47
  4895
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
melunko@47
  4896
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
melunko@47
  4897
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  4898
else
melunko@47
  4899
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
melunko@47
  4900
  # We make a subdir and do the tests there.  Otherwise we can end up
melunko@47
  4901
  # making bogus files that we don't know about and never remove.  For
melunko@47
  4902
  # instance it was reported that on HP-UX the gcc test will end up
melunko@47
  4903
  # making a dummy file named `D' -- because `-MD' means `put the output
melunko@47
  4904
  # in D'.
melunko@47
  4905
  mkdir conftest.dir
melunko@47
  4906
  # Copy depcomp to subdir because otherwise we won't find it if we're
melunko@47
  4907
  # using a relative directory.
melunko@47
  4908
  cp "$am_depcomp" conftest.dir
melunko@47
  4909
  cd conftest.dir
melunko@47
  4910
  # We will build objects and dependencies in a subdirectory because
melunko@47
  4911
  # it helps to detect inapplicable dependency modes.  For instance
melunko@47
  4912
  # both Tru64's cc and ICC support -MD to output dependencies as a
melunko@47
  4913
  # side effect of compilation, but ICC will put the dependencies in
melunko@47
  4914
  # the current directory while Tru64 will put them in the object
melunko@47
  4915
  # directory.
melunko@47
  4916
  mkdir sub
melunko@47
  4917
melunko@47
  4918
  am_cv_CXX_dependencies_compiler_type=none
melunko@47
  4919
  if test "$am_compiler_list" = ""; then
melunko@47
  4920
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
melunko@47
  4921
  fi
melunko@47
  4922
  for depmode in $am_compiler_list; do
melunko@47
  4923
    # Setup a source with many dependencies, because some compilers
melunko@47
  4924
    # like to wrap large dependency lists on column 80 (with \), and
melunko@47
  4925
    # we should not choose a depcomp mode which is confused by this.
melunko@47
  4926
    #
melunko@47
  4927
    # We need to recreate these files for each test, as the compiler may
melunko@47
  4928
    # overwrite some of them when testing with obscure command lines.
melunko@47
  4929
    # This happens at least with the AIX C compiler.
melunko@47
  4930
    : > sub/conftest.c
melunko@47
  4931
    for i in 1 2 3 4 5 6; do
melunko@47
  4932
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
melunko@47
  4933
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
melunko@47
  4934
      # Solaris 8's {/usr,}/bin/sh.
melunko@47
  4935
      touch sub/conftst$i.h
melunko@47
  4936
    done
melunko@47
  4937
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
melunko@47
  4938
melunko@47
  4939
    case $depmode in
melunko@47
  4940
    nosideeffect)
melunko@47
  4941
      # after this tag, mechanisms are not by side-effect, so they'll
melunko@47
  4942
      # only be used when explicitly requested
melunko@47
  4943
      if test "x$enable_dependency_tracking" = xyes; then
melunko@47
  4944
	continue
melunko@47
  4945
      else
melunko@47
  4946
	break
melunko@47
  4947
      fi
melunko@47
  4948
      ;;
melunko@47
  4949
    none) break ;;
melunko@47
  4950
    esac
melunko@47
  4951
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
melunko@47
  4952
    # mode.  It turns out that the SunPro C++ compiler does not properly
melunko@47
  4953
    # handle `-M -o', and we need to detect this.
melunko@47
  4954
    if depmode=$depmode \
melunko@47
  4955
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
melunko@47
  4956
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
melunko@47
  4957
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
melunko@47
  4958
         >/dev/null 2>conftest.err &&
melunko@47
  4959
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
melunko@47
  4960
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
melunko@47
  4961
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
melunko@47
  4962
      # icc doesn't choke on unknown options, it will just issue warnings
melunko@47
  4963
      # or remarks (even with -Werror).  So we grep stderr for any message
melunko@47
  4964
      # that says an option was ignored or not supported.
melunko@47
  4965
      # When given -MP, icc 7.0 and 7.1 complain thusly:
melunko@47
  4966
      #   icc: Command line warning: ignoring option '-M'; no argument required
melunko@47
  4967
      # The diagnosis changed in icc 8.0:
melunko@47
  4968
      #   icc: Command line remark: option '-MP' not supported
melunko@47
  4969
      if (grep 'ignoring option' conftest.err ||
melunko@47
  4970
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
melunko@47
  4971
        am_cv_CXX_dependencies_compiler_type=$depmode
melunko@47
  4972
        break
melunko@47
  4973
      fi
melunko@47
  4974
    fi
melunko@47
  4975
  done
melunko@47
  4976
melunko@47
  4977
  cd ..
melunko@47
  4978
  rm -rf conftest.dir
melunko@47
  4979
else
melunko@47
  4980
  am_cv_CXX_dependencies_compiler_type=none
melunko@47
  4981
fi
melunko@47
  4982
melunko@47
  4983
fi
melunko@47
  4984
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
melunko@47
  4985
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
melunko@47
  4986
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
melunko@47
  4987
melunko@47
  4988
 
melunko@47
  4989
melunko@47
  4990
if 
melunko@47
  4991
  test "x$enable_dependency_tracking" != xno \
melunko@47
  4992
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
melunko@47
  4993
  am__fastdepCXX_TRUE=
melunko@47
  4994
  am__fastdepCXX_FALSE='#'
melunko@47
  4995
else
melunko@47
  4996
  am__fastdepCXX_TRUE='#'
melunko@47
  4997
  am__fastdepCXX_FALSE=
melunko@47
  4998
fi
melunko@47
  4999
melunko@47
  5000
melunko@47
  5001
melunko@47
  5002
melunko@47
  5003
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
melunko@47
  5004
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
melunko@47
  5005
    (test "X$CXX" != "Xg++"))) ; then
melunko@47
  5006
  ac_ext=cc
melunko@47
  5007
ac_cpp='$CXXCPP $CPPFLAGS'
melunko@47
  5008
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  5009
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  5010
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
melunko@47
  5011
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
melunko@47
  5012
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
melunko@47
  5013
if test -z "$CXXCPP"; then
melunko@47
  5014
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
melunko@47
  5015
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  5016
else
melunko@47
  5017
      # Double quotes because CXXCPP needs to be expanded
melunko@47
  5018
    for CXXCPP in "$CXX -E" "/lib/cpp"
melunko@47
  5019
    do
melunko@47
  5020
      ac_preproc_ok=false
melunko@47
  5021
for ac_cxx_preproc_warn_flag in '' yes
melunko@47
  5022
do
melunko@47
  5023
  # Use a header file that comes with gcc, so configuring glibc
melunko@47
  5024
  # with a fresh cross-compiler works.
melunko@47
  5025
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
melunko@47
  5026
  # <limits.h> exists even on freestanding compilers.
melunko@47
  5027
  # On the NeXT, cc -E runs the code through the compiler's parser,
melunko@47
  5028
  # not just through cpp. "Syntax error" is here to catch this case.
melunko@47
  5029
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  5030
/* confdefs.h.  */
melunko@47
  5031
_ACEOF
melunko@47
  5032
cat confdefs.h >>conftest.$ac_ext
melunko@47
  5033
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  5034
/* end confdefs.h.  */
melunko@47
  5035
@%:@ifdef __STDC__
melunko@47
  5036
@%:@ include <limits.h>
melunko@47
  5037
@%:@else
melunko@47
  5038
@%:@ include <assert.h>
melunko@47
  5039
@%:@endif
melunko@47
  5040
		     Syntax error
melunko@47
  5041
_ACEOF
melunko@47
  5042
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
melunko@47
  5043
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
melunko@47
  5044
  ac_status=$?
melunko@47
  5045
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  5046
  rm -f conftest.er1
melunko@47
  5047
  cat conftest.err >&5
melunko@47
  5048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5049
  (exit $ac_status); } >/dev/null; then
melunko@47
  5050
  if test -s conftest.err; then
melunko@47
  5051
    ac_cpp_err=$ac_cxx_preproc_warn_flag
melunko@47
  5052
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
melunko@47
  5053
  else
melunko@47
  5054
    ac_cpp_err=
melunko@47
  5055
  fi
melunko@47
  5056
else
melunko@47
  5057
  ac_cpp_err=yes
melunko@47
  5058
fi
melunko@47
  5059
if test -z "$ac_cpp_err"; then
melunko@47
  5060
  :
melunko@47
  5061
else
melunko@47
  5062
  echo "$as_me: failed program was:" >&5
melunko@47
  5063
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  5064
melunko@47
  5065
  # Broken: fails on valid input.
melunko@47
  5066
continue
melunko@47
  5067
fi
melunko@47
  5068
rm -f conftest.err conftest.$ac_ext
melunko@47
  5069
melunko@47
  5070
  # OK, works on sane cases.  Now check whether non-existent headers
melunko@47
  5071
  # can be detected and how.
melunko@47
  5072
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  5073
/* confdefs.h.  */
melunko@47
  5074
_ACEOF
melunko@47
  5075
cat confdefs.h >>conftest.$ac_ext
melunko@47
  5076
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  5077
/* end confdefs.h.  */
melunko@47
  5078
@%:@include <ac_nonexistent.h>
melunko@47
  5079
_ACEOF
melunko@47
  5080
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
melunko@47
  5081
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
melunko@47
  5082
  ac_status=$?
melunko@47
  5083
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  5084
  rm -f conftest.er1
melunko@47
  5085
  cat conftest.err >&5
melunko@47
  5086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5087
  (exit $ac_status); } >/dev/null; then
melunko@47
  5088
  if test -s conftest.err; then
melunko@47
  5089
    ac_cpp_err=$ac_cxx_preproc_warn_flag
melunko@47
  5090
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
melunko@47
  5091
  else
melunko@47
  5092
    ac_cpp_err=
melunko@47
  5093
  fi
melunko@47
  5094
else
melunko@47
  5095
  ac_cpp_err=yes
melunko@47
  5096
fi
melunko@47
  5097
if test -z "$ac_cpp_err"; then
melunko@47
  5098
  # Broken: success on invalid input.
melunko@47
  5099
continue
melunko@47
  5100
else
melunko@47
  5101
  echo "$as_me: failed program was:" >&5
melunko@47
  5102
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  5103
melunko@47
  5104
  # Passes both tests.
melunko@47
  5105
ac_preproc_ok=:
melunko@47
  5106
break
melunko@47
  5107
fi
melunko@47
  5108
rm -f conftest.err conftest.$ac_ext
melunko@47
  5109
melunko@47
  5110
done
melunko@47
  5111
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
melunko@47
  5112
rm -f conftest.err conftest.$ac_ext
melunko@47
  5113
if $ac_preproc_ok; then
melunko@47
  5114
  break
melunko@47
  5115
fi
melunko@47
  5116
melunko@47
  5117
    done
melunko@47
  5118
    ac_cv_prog_CXXCPP=$CXXCPP
melunko@47
  5119
  
melunko@47
  5120
fi
melunko@47
  5121
  CXXCPP=$ac_cv_prog_CXXCPP
melunko@47
  5122
else
melunko@47
  5123
  ac_cv_prog_CXXCPP=$CXXCPP
melunko@47
  5124
fi
melunko@47
  5125
echo "$as_me:$LINENO: result: $CXXCPP" >&5
melunko@47
  5126
echo "${ECHO_T}$CXXCPP" >&6
melunko@47
  5127
ac_preproc_ok=false
melunko@47
  5128
for ac_cxx_preproc_warn_flag in '' yes
melunko@47
  5129
do
melunko@47
  5130
  # Use a header file that comes with gcc, so configuring glibc
melunko@47
  5131
  # with a fresh cross-compiler works.
melunko@47
  5132
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
melunko@47
  5133
  # <limits.h> exists even on freestanding compilers.
melunko@47
  5134
  # On the NeXT, cc -E runs the code through the compiler's parser,
melunko@47
  5135
  # not just through cpp. "Syntax error" is here to catch this case.
melunko@47
  5136
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  5137
/* confdefs.h.  */
melunko@47
  5138
_ACEOF
melunko@47
  5139
cat confdefs.h >>conftest.$ac_ext
melunko@47
  5140
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  5141
/* end confdefs.h.  */
melunko@47
  5142
@%:@ifdef __STDC__
melunko@47
  5143
@%:@ include <limits.h>
melunko@47
  5144
@%:@else
melunko@47
  5145
@%:@ include <assert.h>
melunko@47
  5146
@%:@endif
melunko@47
  5147
		     Syntax error
melunko@47
  5148
_ACEOF
melunko@47
  5149
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
melunko@47
  5150
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
melunko@47
  5151
  ac_status=$?
melunko@47
  5152
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  5153
  rm -f conftest.er1
melunko@47
  5154
  cat conftest.err >&5
melunko@47
  5155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5156
  (exit $ac_status); } >/dev/null; then
melunko@47
  5157
  if test -s conftest.err; then
melunko@47
  5158
    ac_cpp_err=$ac_cxx_preproc_warn_flag
melunko@47
  5159
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
melunko@47
  5160
  else
melunko@47
  5161
    ac_cpp_err=
melunko@47
  5162
  fi
melunko@47
  5163
else
melunko@47
  5164
  ac_cpp_err=yes
melunko@47
  5165
fi
melunko@47
  5166
if test -z "$ac_cpp_err"; then
melunko@47
  5167
  :
melunko@47
  5168
else
melunko@47
  5169
  echo "$as_me: failed program was:" >&5
melunko@47
  5170
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  5171
melunko@47
  5172
  # Broken: fails on valid input.
melunko@47
  5173
continue
melunko@47
  5174
fi
melunko@47
  5175
rm -f conftest.err conftest.$ac_ext
melunko@47
  5176
melunko@47
  5177
  # OK, works on sane cases.  Now check whether non-existent headers
melunko@47
  5178
  # can be detected and how.
melunko@47
  5179
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  5180
/* confdefs.h.  */
melunko@47
  5181
_ACEOF
melunko@47
  5182
cat confdefs.h >>conftest.$ac_ext
melunko@47
  5183
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  5184
/* end confdefs.h.  */
melunko@47
  5185
@%:@include <ac_nonexistent.h>
melunko@47
  5186
_ACEOF
melunko@47
  5187
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
melunko@47
  5188
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
melunko@47
  5189
  ac_status=$?
melunko@47
  5190
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  5191
  rm -f conftest.er1
melunko@47
  5192
  cat conftest.err >&5
melunko@47
  5193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5194
  (exit $ac_status); } >/dev/null; then
melunko@47
  5195
  if test -s conftest.err; then
melunko@47
  5196
    ac_cpp_err=$ac_cxx_preproc_warn_flag
melunko@47
  5197
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
melunko@47
  5198
  else
melunko@47
  5199
    ac_cpp_err=
melunko@47
  5200
  fi
melunko@47
  5201
else
melunko@47
  5202
  ac_cpp_err=yes
melunko@47
  5203
fi
melunko@47
  5204
if test -z "$ac_cpp_err"; then
melunko@47
  5205
  # Broken: success on invalid input.
melunko@47
  5206
continue
melunko@47
  5207
else
melunko@47
  5208
  echo "$as_me: failed program was:" >&5
melunko@47
  5209
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  5210
melunko@47
  5211
  # Passes both tests.
melunko@47
  5212
ac_preproc_ok=:
melunko@47
  5213
break
melunko@47
  5214
fi
melunko@47
  5215
rm -f conftest.err conftest.$ac_ext
melunko@47
  5216
melunko@47
  5217
done
melunko@47
  5218
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
melunko@47
  5219
rm -f conftest.err conftest.$ac_ext
melunko@47
  5220
if $ac_preproc_ok; then
melunko@47
  5221
  :
melunko@47
  5222
else
melunko@47
  5223
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
melunko@47
  5224
See \`config.log' for more details." >&5
melunko@47
  5225
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
melunko@47
  5226
See \`config.log' for more details." >&2;}
melunko@47
  5227
   { (exit 1); exit 1; }; }
melunko@47
  5228
fi
melunko@47
  5229
melunko@47
  5230
ac_ext=cc
melunko@47
  5231
ac_cpp='$CXXCPP $CPPFLAGS'
melunko@47
  5232
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  5233
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  5234
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
melunko@47
  5235
melunko@47
  5236
fi
melunko@47
  5237
melunko@47
  5238
melunko@47
  5239
ac_ext=f
melunko@47
  5240
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
melunko@47
  5241
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  5242
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
melunko@47
  5243
if test -n "$ac_tool_prefix"; then
melunko@47
  5244
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
melunko@47
  5245
  do
melunko@47
  5246
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
melunko@47
  5247
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
melunko@47
  5248
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  5249
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  5250
if test "${ac_cv_prog_F77+set}" = set; then
melunko@47
  5251
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  5252
else
melunko@47
  5253
  if test -n "$F77"; then
melunko@47
  5254
  ac_cv_prog_F77="$F77" # Let the user override the test.
melunko@47
  5255
else
melunko@47
  5256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  5257
for as_dir in $PATH
melunko@47
  5258
do
melunko@47
  5259
  IFS=$as_save_IFS
melunko@47
  5260
  test -z "$as_dir" && as_dir=.
melunko@47
  5261
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  5262
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  5263
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
melunko@47
  5264
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  5265
    break 2
melunko@47
  5266
  fi
melunko@47
  5267
done
melunko@47
  5268
done
melunko@47
  5269
melunko@47
  5270
fi
melunko@47
  5271
fi
melunko@47
  5272
F77=$ac_cv_prog_F77
melunko@47
  5273
if test -n "$F77"; then
melunko@47
  5274
  echo "$as_me:$LINENO: result: $F77" >&5
melunko@47
  5275
echo "${ECHO_T}$F77" >&6
melunko@47
  5276
else
melunko@47
  5277
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  5278
echo "${ECHO_T}no" >&6
melunko@47
  5279
fi
melunko@47
  5280
melunko@47
  5281
    test -n "$F77" && break
melunko@47
  5282
  done
melunko@47
  5283
fi
melunko@47
  5284
if test -z "$F77"; then
melunko@47
  5285
  ac_ct_F77=$F77
melunko@47
  5286
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
melunko@47
  5287
do
melunko@47
  5288
  # Extract the first word of "$ac_prog", so it can be a program name with args.
melunko@47
  5289
set dummy $ac_prog; ac_word=$2
melunko@47
  5290
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  5291
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  5292
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
melunko@47
  5293
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  5294
else
melunko@47
  5295
  if test -n "$ac_ct_F77"; then
melunko@47
  5296
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
melunko@47
  5297
else
melunko@47
  5298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  5299
for as_dir in $PATH
melunko@47
  5300
do
melunko@47
  5301
  IFS=$as_save_IFS
melunko@47
  5302
  test -z "$as_dir" && as_dir=.
melunko@47
  5303
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  5304
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  5305
    ac_cv_prog_ac_ct_F77="$ac_prog"
melunko@47
  5306
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  5307
    break 2
melunko@47
  5308
  fi
melunko@47
  5309
done
melunko@47
  5310
done
melunko@47
  5311
melunko@47
  5312
fi
melunko@47
  5313
fi
melunko@47
  5314
ac_ct_F77=$ac_cv_prog_ac_ct_F77
melunko@47
  5315
if test -n "$ac_ct_F77"; then
melunko@47
  5316
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
melunko@47
  5317
echo "${ECHO_T}$ac_ct_F77" >&6
melunko@47
  5318
else
melunko@47
  5319
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  5320
echo "${ECHO_T}no" >&6
melunko@47
  5321
fi
melunko@47
  5322
melunko@47
  5323
  test -n "$ac_ct_F77" && break
melunko@47
  5324
done
melunko@47
  5325
melunko@47
  5326
  F77=$ac_ct_F77
melunko@47
  5327
fi
melunko@47
  5328
melunko@47
  5329
melunko@47
  5330
# Provide some information about the compiler.
melunko@47
  5331
echo "$as_me:__oline__:" \
melunko@47
  5332
     "checking for Fortran 77 compiler version" >&5
melunko@47
  5333
ac_compiler=`set X $ac_compile; echo $2`
melunko@47
  5334
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
melunko@47
  5335
  (eval $ac_compiler --version </dev/null >&5) 2>&5
melunko@47
  5336
  ac_status=$?
melunko@47
  5337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5338
  (exit $ac_status); }
melunko@47
  5339
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
melunko@47
  5340
  (eval $ac_compiler -v </dev/null >&5) 2>&5
melunko@47
  5341
  ac_status=$?
melunko@47
  5342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5343
  (exit $ac_status); }
melunko@47
  5344
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
melunko@47
  5345
  (eval $ac_compiler -V </dev/null >&5) 2>&5
melunko@47
  5346
  ac_status=$?
melunko@47
  5347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5348
  (exit $ac_status); }
melunko@47
  5349
rm -f a.out
melunko@47
  5350
melunko@47
  5351
# If we don't use `.F' as extension, the preprocessor is not run on the
melunko@47
  5352
# input file.  (Note that this only needs to work for GNU compilers.)
melunko@47
  5353
ac_save_ext=$ac_ext
melunko@47
  5354
ac_ext=F
melunko@47
  5355
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
melunko@47
  5356
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
melunko@47
  5357
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
melunko@47
  5358
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  5359
else
melunko@47
  5360
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  5361
      program main
melunko@47
  5362
#ifndef __GNUC__
melunko@47
  5363
       choke me
melunko@47
  5364
#endif
melunko@47
  5365
melunko@47
  5366
      end
melunko@47
  5367
_ACEOF
melunko@47
  5368
rm -f conftest.$ac_objext
melunko@47
  5369
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  5370
  (eval $ac_compile) 2>conftest.er1
melunko@47
  5371
  ac_status=$?
melunko@47
  5372
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  5373
  rm -f conftest.er1
melunko@47
  5374
  cat conftest.err >&5
melunko@47
  5375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5376
  (exit $ac_status); } &&
melunko@47
  5377
	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
melunko@47
  5378
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  5379
  (eval $ac_try) 2>&5
melunko@47
  5380
  ac_status=$?
melunko@47
  5381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5382
  (exit $ac_status); }; } &&
melunko@47
  5383
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  5384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  5385
  (eval $ac_try) 2>&5
melunko@47
  5386
  ac_status=$?
melunko@47
  5387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5388
  (exit $ac_status); }; }; then
melunko@47
  5389
  ac_compiler_gnu=yes
melunko@47
  5390
else
melunko@47
  5391
  echo "$as_me: failed program was:" >&5
melunko@47
  5392
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  5393
melunko@47
  5394
ac_compiler_gnu=no
melunko@47
  5395
fi
melunko@47
  5396
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
  5397
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
melunko@47
  5398
melunko@47
  5399
fi
melunko@47
  5400
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
melunko@47
  5401
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
melunko@47
  5402
ac_ext=$ac_save_ext
melunko@47
  5403
ac_test_FFLAGS=${FFLAGS+set}
melunko@47
  5404
ac_save_FFLAGS=$FFLAGS
melunko@47
  5405
FFLAGS=
melunko@47
  5406
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
melunko@47
  5407
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
melunko@47
  5408
if test "${ac_cv_prog_f77_g+set}" = set; then
melunko@47
  5409
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  5410
else
melunko@47
  5411
  FFLAGS=-g
melunko@47
  5412
cat >conftest.$ac_ext <<_ACEOF
melunko@47
  5413
      program main
melunko@47
  5414
melunko@47
  5415
      end
melunko@47
  5416
_ACEOF
melunko@47
  5417
rm -f conftest.$ac_objext
melunko@47
  5418
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  5419
  (eval $ac_compile) 2>conftest.er1
melunko@47
  5420
  ac_status=$?
melunko@47
  5421
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  5422
  rm -f conftest.er1
melunko@47
  5423
  cat conftest.err >&5
melunko@47
  5424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5425
  (exit $ac_status); } &&
melunko@47
  5426
	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
melunko@47
  5427
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  5428
  (eval $ac_try) 2>&5
melunko@47
  5429
  ac_status=$?
melunko@47
  5430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5431
  (exit $ac_status); }; } &&
melunko@47
  5432
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
  5433
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  5434
  (eval $ac_try) 2>&5
melunko@47
  5435
  ac_status=$?
melunko@47
  5436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5437
  (exit $ac_status); }; }; then
melunko@47
  5438
  ac_cv_prog_f77_g=yes
melunko@47
  5439
else
melunko@47
  5440
  echo "$as_me: failed program was:" >&5
melunko@47
  5441
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  5442
melunko@47
  5443
ac_cv_prog_f77_g=no
melunko@47
  5444
fi
melunko@47
  5445
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
  5446
melunko@47
  5447
fi
melunko@47
  5448
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
melunko@47
  5449
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
melunko@47
  5450
if test "$ac_test_FFLAGS" = set; then
melunko@47
  5451
  FFLAGS=$ac_save_FFLAGS
melunko@47
  5452
elif test $ac_cv_prog_f77_g = yes; then
melunko@47
  5453
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
melunko@47
  5454
    FFLAGS="-g -O2"
melunko@47
  5455
  else
melunko@47
  5456
    FFLAGS="-g"
melunko@47
  5457
  fi
melunko@47
  5458
else
melunko@47
  5459
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
melunko@47
  5460
    FFLAGS="-O2"
melunko@47
  5461
  else
melunko@47
  5462
    FFLAGS=
melunko@47
  5463
  fi
melunko@47
  5464
fi
melunko@47
  5465
melunko@47
  5466
G77=`test $ac_compiler_gnu = yes && echo yes`
melunko@47
  5467
ac_ext=c
melunko@47
  5468
ac_cpp='$CPP $CPPFLAGS'
melunko@47
  5469
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  5470
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  5471
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
  5472
melunko@47
  5473
melunko@47
  5474
melunko@47
  5475
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
melunko@47
  5476
melunko@47
  5477
# find the maximum length of command line arguments
melunko@47
  5478
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
melunko@47
  5479
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
melunko@47
  5480
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
melunko@47
  5481
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  5482
else
melunko@47
  5483
    i=0
melunko@47
  5484
  teststring="ABCD"
melunko@47
  5485
melunko@47
  5486
  case $build_os in
melunko@47
  5487
  msdosdjgpp*)
melunko@47
  5488
    # On DJGPP, this test can blow up pretty badly due to problems in libc
melunko@47
  5489
    # (any single argument exceeding 2000 bytes causes a buffer overrun
melunko@47
  5490
    # during glob expansion).  Even if it were fixed, the result of this
melunko@47
  5491
    # check would be larger than it should be.
melunko@47
  5492
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
melunko@47
  5493
    ;;
melunko@47
  5494
melunko@47
  5495
  gnu*)
melunko@47
  5496
    # Under GNU Hurd, this test is not required because there is
melunko@47
  5497
    # no limit to the length of command line arguments.
melunko@47
  5498
    # Libtool will interpret -1 as no limit whatsoever
melunko@47
  5499
    lt_cv_sys_max_cmd_len=-1;
melunko@47
  5500
    ;;
melunko@47
  5501
melunko@47
  5502
  cygwin* | mingw*)
melunko@47
  5503
    # On Win9x/ME, this test blows up -- it succeeds, but takes
melunko@47
  5504
    # about 5 minutes as the teststring grows exponentially.
melunko@47
  5505
    # Worse, since 9x/ME are not pre-emptively multitasking,
melunko@47
  5506
    # you end up with a "frozen" computer, even though with patience
melunko@47
  5507
    # the test eventually succeeds (with a max line length of 256k).
melunko@47
  5508
    # Instead, let's just punt: use the minimum linelength reported by
melunko@47
  5509
    # all of the supported platforms: 8192 (on NT/2K/XP).
melunko@47
  5510
    lt_cv_sys_max_cmd_len=8192;
melunko@47
  5511
    ;;
melunko@47
  5512
melunko@47
  5513
  amigaos*)
melunko@47
  5514
    # On AmigaOS with pdksh, this test takes hours, literally.
melunko@47
  5515
    # So we just punt and use a minimum line length of 8192.
melunko@47
  5516
    lt_cv_sys_max_cmd_len=8192;
melunko@47
  5517
    ;;
melunko@47
  5518
melunko@47
  5519
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
melunko@47
  5520
    # This has been around since 386BSD, at least.  Likely further.
melunko@47
  5521
    if test -x /sbin/sysctl; then
melunko@47
  5522
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
melunko@47
  5523
    elif test -x /usr/sbin/sysctl; then
melunko@47
  5524
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
melunko@47
  5525
    else
melunko@47
  5526
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
melunko@47
  5527
    fi
melunko@47
  5528
    # And add a safety zone
melunko@47
  5529
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
melunko@47
  5530
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
melunko@47
  5531
    ;;
melunko@47
  5532
  osf*)
melunko@47
  5533
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
melunko@47
  5534
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
melunko@47
  5535
    # nice to cause kernel panics so lets avoid the loop below.
melunko@47
  5536
    # First set a reasonable default.
melunko@47
  5537
    lt_cv_sys_max_cmd_len=16384
melunko@47
  5538
    #
melunko@47
  5539
    if test -x /sbin/sysconfig; then
melunko@47
  5540
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
melunko@47
  5541
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
melunko@47
  5542
      esac
melunko@47
  5543
    fi
melunko@47
  5544
    ;;
melunko@47
  5545
  *)
melunko@47
  5546
    # If test is not a shell built-in, we'll probably end up computing a
melunko@47
  5547
    # maximum length that is only half of the actual maximum length, but
melunko@47
  5548
    # we can't tell.
melunko@47
  5549
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
melunko@47
  5550
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
melunko@47
  5551
	       = "XX$teststring") >/dev/null 2>&1 &&
melunko@47
  5552
	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
melunko@47
  5553
	    lt_cv_sys_max_cmd_len=$new_result &&
melunko@47
  5554
	    test $i != 17 # 1/2 MB should be enough
melunko@47
  5555
    do
melunko@47
  5556
      i=`expr $i + 1`
melunko@47
  5557
      teststring=$teststring$teststring
melunko@47
  5558
    done
melunko@47
  5559
    teststring=
melunko@47
  5560
    # Add a significant safety factor because C++ compilers can tack on massive
melunko@47
  5561
    # amounts of additional arguments before passing them to the linker.
melunko@47
  5562
    # It appears as though 1/2 is a usable value.
melunko@47
  5563
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
melunko@47
  5564
    ;;
melunko@47
  5565
  esac
melunko@47
  5566
melunko@47
  5567
fi
melunko@47
  5568
melunko@47
  5569
if test -n $lt_cv_sys_max_cmd_len ; then
melunko@47
  5570
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
melunko@47
  5571
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
melunko@47
  5572
else
melunko@47
  5573
  echo "$as_me:$LINENO: result: none" >&5
melunko@47
  5574
echo "${ECHO_T}none" >&6
melunko@47
  5575
fi
melunko@47
  5576
melunko@47
  5577
melunko@47
  5578
melunko@47
  5579
melunko@47
  5580
# Check for command to grab the raw symbol name followed by C symbol from nm.
melunko@47
  5581
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
melunko@47
  5582
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
melunko@47
  5583
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
melunko@47
  5584
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  5585
else
melunko@47
  5586
  
melunko@47
  5587
# These are sane defaults that work on at least a few old systems.
melunko@47
  5588
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
melunko@47
  5589
melunko@47
  5590
# Character class describing NM global symbol codes.
melunko@47
  5591
symcode='[BCDEGRST]'
melunko@47
  5592
melunko@47
  5593
# Regexp to match symbols that can be accessed directly from C.
melunko@47
  5594
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
melunko@47
  5595
melunko@47
  5596
# Transform an extracted symbol line into a proper C declaration
melunko@47
  5597
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
melunko@47
  5598
melunko@47
  5599
# Transform an extracted symbol line into symbol name and symbol address
melunko@47
  5600
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
melunko@47
  5601
melunko@47
  5602
# Define system-specific variables.
melunko@47
  5603
case $host_os in
melunko@47
  5604
aix*)
melunko@47
  5605
  symcode='[BCDT]'
melunko@47
  5606
  ;;
melunko@47
  5607
cygwin* | mingw* | pw32*)
melunko@47
  5608
  symcode='[ABCDGISTW]'
melunko@47
  5609
  ;;
melunko@47
  5610
hpux*) # Its linker distinguishes data from code symbols
melunko@47
  5611
  if test "$host_cpu" = ia64; then
melunko@47
  5612
    symcode='[ABCDEGRST]'
melunko@47
  5613
  fi
melunko@47
  5614
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
melunko@47
  5615
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
melunko@47
  5616
  ;;
melunko@47
  5617
linux*)
melunko@47
  5618
  if test "$host_cpu" = ia64; then
melunko@47
  5619
    symcode='[ABCDGIRSTW]'
melunko@47
  5620
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
melunko@47
  5621
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
melunko@47
  5622
  fi
melunko@47
  5623
  ;;
melunko@47
  5624
irix* | nonstopux*)
melunko@47
  5625
  symcode='[BCDEGRST]'
melunko@47
  5626
  ;;
melunko@47
  5627
osf*)
melunko@47
  5628
  symcode='[BCDEGQRST]'
melunko@47
  5629
  ;;
melunko@47
  5630
solaris* | sysv5*)
melunko@47
  5631
  symcode='[BDRT]'
melunko@47
  5632
  ;;
melunko@47
  5633
sysv4)
melunko@47
  5634
  symcode='[DFNSTU]'
melunko@47
  5635
  ;;
melunko@47
  5636
esac
melunko@47
  5637
melunko@47
  5638
# Handle CRLF in mingw tool chain
melunko@47
  5639
opt_cr=
melunko@47
  5640
case $build_os in
melunko@47
  5641
mingw*)
melunko@47
  5642
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
melunko@47
  5643
  ;;
melunko@47
  5644
esac
melunko@47
  5645
melunko@47
  5646
# If we're using GNU nm, then use its standard symbol codes.
melunko@47
  5647
case `$NM -V 2>&1` in
melunko@47
  5648
*GNU* | *'with BFD'*)
melunko@47
  5649
  symcode='[ABCDGIRSTW]' ;;
melunko@47
  5650
esac
melunko@47
  5651
melunko@47
  5652
# Try without a prefix undercore, then with it.
melunko@47
  5653
for ac_symprfx in "" "_"; do
melunko@47
  5654
melunko@47
  5655
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
melunko@47
  5656
  symxfrm="\\1 $ac_symprfx\\2 \\2"
melunko@47
  5657
melunko@47
  5658
  # Write the raw and C identifiers.
melunko@47
  5659
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
melunko@47
  5660
melunko@47
  5661
  # Check to see that the pipe works correctly.
melunko@47
  5662
  pipe_works=no
melunko@47
  5663
melunko@47
  5664
  rm -f conftest*
melunko@47
  5665
  cat > conftest.$ac_ext <<EOF
melunko@47
  5666
#ifdef __cplusplus
melunko@47
  5667
extern "C" {
melunko@47
  5668
#endif
melunko@47
  5669
char nm_test_var;
melunko@47
  5670
void nm_test_func(){}
melunko@47
  5671
#ifdef __cplusplus
melunko@47
  5672
}
melunko@47
  5673
#endif
melunko@47
  5674
int main(){nm_test_var='a';nm_test_func();return(0);}
melunko@47
  5675
EOF
melunko@47
  5676
melunko@47
  5677
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  5678
  (eval $ac_compile) 2>&5
melunko@47
  5679
  ac_status=$?
melunko@47
  5680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5681
  (exit $ac_status); }; then
melunko@47
  5682
    # Now try to grab the symbols.
melunko@47
  5683
    nlist=conftest.nm
melunko@47
  5684
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
melunko@47
  5685
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
melunko@47
  5686
  ac_status=$?
melunko@47
  5687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5688
  (exit $ac_status); } && test -s "$nlist"; then
melunko@47
  5689
      # Try sorting and uniquifying the output.
melunko@47
  5690
      if sort "$nlist" | uniq > "$nlist"T; then
melunko@47
  5691
	mv -f "$nlist"T "$nlist"
melunko@47
  5692
      else
melunko@47
  5693
	rm -f "$nlist"T
melunko@47
  5694
      fi
melunko@47
  5695
melunko@47
  5696
      # Make sure that we snagged all the symbols we need.
melunko@47
  5697
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
melunko@47
  5698
	if grep ' nm_test_func$' "$nlist" >/dev/null; then
melunko@47
  5699
	  cat <<EOF > conftest.$ac_ext
melunko@47
  5700
#ifdef __cplusplus
melunko@47
  5701
extern "C" {
melunko@47
  5702
#endif
melunko@47
  5703
melunko@47
  5704
EOF
melunko@47
  5705
	  # Now generate the symbol file.
melunko@47
  5706
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
melunko@47
  5707
melunko@47
  5708
	  cat <<EOF >> conftest.$ac_ext
melunko@47
  5709
#if defined (__STDC__) && __STDC__
melunko@47
  5710
# define lt_ptr_t void *
melunko@47
  5711
#else
melunko@47
  5712
# define lt_ptr_t char *
melunko@47
  5713
# define const
melunko@47
  5714
#endif
melunko@47
  5715
melunko@47
  5716
/* The mapping between symbol names and symbols. */
melunko@47
  5717
const struct {
melunko@47
  5718
  const char *name;
melunko@47
  5719
  lt_ptr_t address;
melunko@47
  5720
}
melunko@47
  5721
lt_preloaded_symbols[] =
melunko@47
  5722
{
melunko@47
  5723
EOF
melunko@47
  5724
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
melunko@47
  5725
	  cat <<\EOF >> conftest.$ac_ext
melunko@47
  5726
  {0, (lt_ptr_t) 0}
melunko@47
  5727
};
melunko@47
  5728
melunko@47
  5729
#ifdef __cplusplus
melunko@47
  5730
}
melunko@47
  5731
#endif
melunko@47
  5732
EOF
melunko@47
  5733
	  # Now try linking the two files.
melunko@47
  5734
	  mv conftest.$ac_objext conftstm.$ac_objext
melunko@47
  5735
	  lt_save_LIBS="$LIBS"
melunko@47
  5736
	  lt_save_CFLAGS="$CFLAGS"
melunko@47
  5737
	  LIBS="conftstm.$ac_objext"
melunko@47
  5738
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
melunko@47
  5739
	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  5740
  (eval $ac_link) 2>&5
melunko@47
  5741
  ac_status=$?
melunko@47
  5742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  5743
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
melunko@47
  5744
	    pipe_works=yes
melunko@47
  5745
	  fi
melunko@47
  5746
	  LIBS="$lt_save_LIBS"
melunko@47
  5747
	  CFLAGS="$lt_save_CFLAGS"
melunko@47
  5748
	else
melunko@47
  5749
	  echo "cannot find nm_test_func in $nlist" >&5
melunko@47
  5750
	fi
melunko@47
  5751
      else
melunko@47
  5752
	echo "cannot find nm_test_var in $nlist" >&5
melunko@47
  5753
      fi
melunko@47
  5754
    else
melunko@47
  5755
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
melunko@47
  5756
    fi
melunko@47
  5757
  else
melunko@47
  5758
    echo "$progname: failed program was:" >&5
melunko@47
  5759
    cat conftest.$ac_ext >&5
melunko@47
  5760
  fi
melunko@47
  5761
  rm -f conftest* conftst*
melunko@47
  5762
melunko@47
  5763
  # Do not use the global_symbol_pipe unless it works.
melunko@47
  5764
  if test "$pipe_works" = yes; then
melunko@47
  5765
    break
melunko@47
  5766
  else
melunko@47
  5767
    lt_cv_sys_global_symbol_pipe=
melunko@47
  5768
  fi
melunko@47
  5769
done
melunko@47
  5770
melunko@47
  5771
fi
melunko@47
  5772
melunko@47
  5773
if test -z "$lt_cv_sys_global_symbol_pipe"; then
melunko@47
  5774
  lt_cv_sys_global_symbol_to_cdecl=
melunko@47
  5775
fi
melunko@47
  5776
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
melunko@47
  5777
  echo "$as_me:$LINENO: result: failed" >&5
melunko@47
  5778
echo "${ECHO_T}failed" >&6
melunko@47
  5779
else
melunko@47
  5780
  echo "$as_me:$LINENO: result: ok" >&5
melunko@47
  5781
echo "${ECHO_T}ok" >&6
melunko@47
  5782
fi
melunko@47
  5783
melunko@47
  5784
echo "$as_me:$LINENO: checking for objdir" >&5
melunko@47
  5785
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
melunko@47
  5786
if test "${lt_cv_objdir+set}" = set; then
melunko@47
  5787
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  5788
else
melunko@47
  5789
  rm -f .libs 2>/dev/null
melunko@47
  5790
mkdir .libs 2>/dev/null
melunko@47
  5791
if test -d .libs; then
melunko@47
  5792
  lt_cv_objdir=.libs
melunko@47
  5793
else
melunko@47
  5794
  # MS-DOS does not allow filenames that begin with a dot.
melunko@47
  5795
  lt_cv_objdir=_libs
melunko@47
  5796
fi
melunko@47
  5797
rmdir .libs 2>/dev/null
melunko@47
  5798
fi
melunko@47
  5799
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
melunko@47
  5800
echo "${ECHO_T}$lt_cv_objdir" >&6
melunko@47
  5801
objdir=$lt_cv_objdir
melunko@47
  5802
melunko@47
  5803
melunko@47
  5804
melunko@47
  5805
melunko@47
  5806
melunko@47
  5807
case $host_os in
melunko@47
  5808
aix3*)
melunko@47
  5809
  # AIX sometimes has problems with the GCC collect2 program.  For some
melunko@47
  5810
  # reason, if we set the COLLECT_NAMES environment variable, the problems
melunko@47
  5811
  # vanish in a puff of smoke.
melunko@47
  5812
  if test "X${COLLECT_NAMES+set}" != Xset; then
melunko@47
  5813
    COLLECT_NAMES=
melunko@47
  5814
    export COLLECT_NAMES
melunko@47
  5815
  fi
melunko@47
  5816
  ;;
melunko@47
  5817
esac
melunko@47
  5818
melunko@47
  5819
# Sed substitution that helps us do robust quoting.  It backslashifies
melunko@47
  5820
# metacharacters that are still active within double-quoted strings.
melunko@47
  5821
Xsed='sed -e 1s/^X//'
melunko@47
  5822
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
melunko@47
  5823
melunko@47
  5824
# Same as above, but do not quote variable references.
melunko@47
  5825
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
melunko@47
  5826
melunko@47
  5827
# Sed substitution to delay expansion of an escaped shell variable in a
melunko@47
  5828
# double_quote_subst'ed string.
melunko@47
  5829
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
melunko@47
  5830
melunko@47
  5831
# Sed substitution to avoid accidental globbing in evaled expressions
melunko@47
  5832
no_glob_subst='s/\*/\\\*/g'
melunko@47
  5833
melunko@47
  5834
# Constants:
melunko@47
  5835
rm="rm -f"
melunko@47
  5836
melunko@47
  5837
# Global variables:
melunko@47
  5838
default_ofile=libtool
melunko@47
  5839
can_build_shared=yes
melunko@47
  5840
melunko@47
  5841
# All known linkers require a `.a' archive for static linking (except MSVC,
melunko@47
  5842
# which needs '.lib').
melunko@47
  5843
libext=a
melunko@47
  5844
ltmain="$ac_aux_dir/ltmain.sh"
melunko@47
  5845
ofile="$default_ofile"
melunko@47
  5846
with_gnu_ld="$lt_cv_prog_gnu_ld"
melunko@47
  5847
melunko@47
  5848
if test -n "$ac_tool_prefix"; then
melunko@47
  5849
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
melunko@47
  5850
set dummy ${ac_tool_prefix}ar; ac_word=$2
melunko@47
  5851
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  5852
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  5853
if test "${ac_cv_prog_AR+set}" = set; then
melunko@47
  5854
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  5855
else
melunko@47
  5856
  if test -n "$AR"; then
melunko@47
  5857
  ac_cv_prog_AR="$AR" # Let the user override the test.
melunko@47
  5858
else
melunko@47
  5859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  5860
for as_dir in $PATH
melunko@47
  5861
do
melunko@47
  5862
  IFS=$as_save_IFS
melunko@47
  5863
  test -z "$as_dir" && as_dir=.
melunko@47
  5864
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  5865
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  5866
    ac_cv_prog_AR="${ac_tool_prefix}ar"
melunko@47
  5867
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  5868
    break 2
melunko@47
  5869
  fi
melunko@47
  5870
done
melunko@47
  5871
done
melunko@47
  5872
melunko@47
  5873
fi
melunko@47
  5874
fi
melunko@47
  5875
AR=$ac_cv_prog_AR
melunko@47
  5876
if test -n "$AR"; then
melunko@47
  5877
  echo "$as_me:$LINENO: result: $AR" >&5
melunko@47
  5878
echo "${ECHO_T}$AR" >&6
melunko@47
  5879
else
melunko@47
  5880
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  5881
echo "${ECHO_T}no" >&6
melunko@47
  5882
fi
melunko@47
  5883
melunko@47
  5884
fi
melunko@47
  5885
if test -z "$ac_cv_prog_AR"; then
melunko@47
  5886
  ac_ct_AR=$AR
melunko@47
  5887
  # Extract the first word of "ar", so it can be a program name with args.
melunko@47
  5888
set dummy ar; ac_word=$2
melunko@47
  5889
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  5890
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  5891
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
melunko@47
  5892
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  5893
else
melunko@47
  5894
  if test -n "$ac_ct_AR"; then
melunko@47
  5895
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
melunko@47
  5896
else
melunko@47
  5897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  5898
for as_dir in $PATH
melunko@47
  5899
do
melunko@47
  5900
  IFS=$as_save_IFS
melunko@47
  5901
  test -z "$as_dir" && as_dir=.
melunko@47
  5902
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  5903
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  5904
    ac_cv_prog_ac_ct_AR="ar"
melunko@47
  5905
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  5906
    break 2
melunko@47
  5907
  fi
melunko@47
  5908
done
melunko@47
  5909
done
melunko@47
  5910
melunko@47
  5911
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
melunko@47
  5912
fi
melunko@47
  5913
fi
melunko@47
  5914
ac_ct_AR=$ac_cv_prog_ac_ct_AR
melunko@47
  5915
if test -n "$ac_ct_AR"; then
melunko@47
  5916
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
melunko@47
  5917
echo "${ECHO_T}$ac_ct_AR" >&6
melunko@47
  5918
else
melunko@47
  5919
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  5920
echo "${ECHO_T}no" >&6
melunko@47
  5921
fi
melunko@47
  5922
melunko@47
  5923
  AR=$ac_ct_AR
melunko@47
  5924
else
melunko@47
  5925
  AR="$ac_cv_prog_AR"
melunko@47
  5926
fi
melunko@47
  5927
melunko@47
  5928
if test -n "$ac_tool_prefix"; then
melunko@47
  5929
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
melunko@47
  5930
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
melunko@47
  5931
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  5932
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  5933
if test "${ac_cv_prog_RANLIB+set}" = set; then
melunko@47
  5934
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  5935
else
melunko@47
  5936
  if test -n "$RANLIB"; then
melunko@47
  5937
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
melunko@47
  5938
else
melunko@47
  5939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  5940
for as_dir in $PATH
melunko@47
  5941
do
melunko@47
  5942
  IFS=$as_save_IFS
melunko@47
  5943
  test -z "$as_dir" && as_dir=.
melunko@47
  5944
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  5945
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  5946
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
melunko@47
  5947
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  5948
    break 2
melunko@47
  5949
  fi
melunko@47
  5950
done
melunko@47
  5951
done
melunko@47
  5952
melunko@47
  5953
fi
melunko@47
  5954
fi
melunko@47
  5955
RANLIB=$ac_cv_prog_RANLIB
melunko@47
  5956
if test -n "$RANLIB"; then
melunko@47
  5957
  echo "$as_me:$LINENO: result: $RANLIB" >&5
melunko@47
  5958
echo "${ECHO_T}$RANLIB" >&6
melunko@47
  5959
else
melunko@47
  5960
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  5961
echo "${ECHO_T}no" >&6
melunko@47
  5962
fi
melunko@47
  5963
melunko@47
  5964
fi
melunko@47
  5965
if test -z "$ac_cv_prog_RANLIB"; then
melunko@47
  5966
  ac_ct_RANLIB=$RANLIB
melunko@47
  5967
  # Extract the first word of "ranlib", so it can be a program name with args.
melunko@47
  5968
set dummy ranlib; ac_word=$2
melunko@47
  5969
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  5970
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  5971
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
melunko@47
  5972
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  5973
else
melunko@47
  5974
  if test -n "$ac_ct_RANLIB"; then
melunko@47
  5975
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
melunko@47
  5976
else
melunko@47
  5977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  5978
for as_dir in $PATH
melunko@47
  5979
do
melunko@47
  5980
  IFS=$as_save_IFS
melunko@47
  5981
  test -z "$as_dir" && as_dir=.
melunko@47
  5982
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  5983
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  5984
    ac_cv_prog_ac_ct_RANLIB="ranlib"
melunko@47
  5985
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  5986
    break 2
melunko@47
  5987
  fi
melunko@47
  5988
done
melunko@47
  5989
done
melunko@47
  5990
melunko@47
  5991
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
melunko@47
  5992
fi
melunko@47
  5993
fi
melunko@47
  5994
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
melunko@47
  5995
if test -n "$ac_ct_RANLIB"; then
melunko@47
  5996
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
melunko@47
  5997
echo "${ECHO_T}$ac_ct_RANLIB" >&6
melunko@47
  5998
else
melunko@47
  5999
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  6000
echo "${ECHO_T}no" >&6
melunko@47
  6001
fi
melunko@47
  6002
melunko@47
  6003
  RANLIB=$ac_ct_RANLIB
melunko@47
  6004
else
melunko@47
  6005
  RANLIB="$ac_cv_prog_RANLIB"
melunko@47
  6006
fi
melunko@47
  6007
melunko@47
  6008
if test -n "$ac_tool_prefix"; then
melunko@47
  6009
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
melunko@47
  6010
set dummy ${ac_tool_prefix}strip; ac_word=$2
melunko@47
  6011
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  6012
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  6013
if test "${ac_cv_prog_STRIP+set}" = set; then
melunko@47
  6014
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  6015
else
melunko@47
  6016
  if test -n "$STRIP"; then
melunko@47
  6017
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
melunko@47
  6018
else
melunko@47
  6019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  6020
for as_dir in $PATH
melunko@47
  6021
do
melunko@47
  6022
  IFS=$as_save_IFS
melunko@47
  6023
  test -z "$as_dir" && as_dir=.
melunko@47
  6024
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  6025
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  6026
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
melunko@47
  6027
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  6028
    break 2
melunko@47
  6029
  fi
melunko@47
  6030
done
melunko@47
  6031
done
melunko@47
  6032
melunko@47
  6033
fi
melunko@47
  6034
fi
melunko@47
  6035
STRIP=$ac_cv_prog_STRIP
melunko@47
  6036
if test -n "$STRIP"; then
melunko@47
  6037
  echo "$as_me:$LINENO: result: $STRIP" >&5
melunko@47
  6038
echo "${ECHO_T}$STRIP" >&6
melunko@47
  6039
else
melunko@47
  6040
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  6041
echo "${ECHO_T}no" >&6
melunko@47
  6042
fi
melunko@47
  6043
melunko@47
  6044
fi
melunko@47
  6045
if test -z "$ac_cv_prog_STRIP"; then
melunko@47
  6046
  ac_ct_STRIP=$STRIP
melunko@47
  6047
  # Extract the first word of "strip", so it can be a program name with args.
melunko@47
  6048
set dummy strip; ac_word=$2
melunko@47
  6049
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
  6050
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
  6051
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
melunko@47
  6052
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  6053
else
melunko@47
  6054
  if test -n "$ac_ct_STRIP"; then
melunko@47
  6055
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
melunko@47
  6056
else
melunko@47
  6057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
  6058
for as_dir in $PATH
melunko@47
  6059
do
melunko@47
  6060
  IFS=$as_save_IFS
melunko@47
  6061
  test -z "$as_dir" && as_dir=.
melunko@47
  6062
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
  6063
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
  6064
    ac_cv_prog_ac_ct_STRIP="strip"
melunko@47
  6065
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
  6066
    break 2
melunko@47
  6067
  fi
melunko@47
  6068
done
melunko@47
  6069
done
melunko@47
  6070
melunko@47
  6071
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
melunko@47
  6072
fi
melunko@47
  6073
fi
melunko@47
  6074
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
melunko@47
  6075
if test -n "$ac_ct_STRIP"; then
melunko@47
  6076
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
melunko@47
  6077
echo "${ECHO_T}$ac_ct_STRIP" >&6
melunko@47
  6078
else
melunko@47
  6079
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  6080
echo "${ECHO_T}no" >&6
melunko@47
  6081
fi
melunko@47
  6082
melunko@47
  6083
  STRIP=$ac_ct_STRIP
melunko@47
  6084
else
melunko@47
  6085
  STRIP="$ac_cv_prog_STRIP"
melunko@47
  6086
fi
melunko@47
  6087
melunko@47
  6088
melunko@47
  6089
old_CC="$CC"
melunko@47
  6090
old_CFLAGS="$CFLAGS"
melunko@47
  6091
melunko@47
  6092
# Set sane defaults for various variables
melunko@47
  6093
test -z "$AR" && AR=ar
melunko@47
  6094
test -z "$AR_FLAGS" && AR_FLAGS=cru
melunko@47
  6095
test -z "$AS" && AS=as
melunko@47
  6096
test -z "$CC" && CC=cc
melunko@47
  6097
test -z "$LTCC" && LTCC=$CC
melunko@47
  6098
test -z "$DLLTOOL" && DLLTOOL=dlltool
melunko@47
  6099
test -z "$LD" && LD=ld
melunko@47
  6100
test -z "$LN_S" && LN_S="ln -s"
melunko@47
  6101
test -z "$MAGIC_CMD" && MAGIC_CMD=file
melunko@47
  6102
test -z "$NM" && NM=nm
melunko@47
  6103
test -z "$SED" && SED=sed
melunko@47
  6104
test -z "$OBJDUMP" && OBJDUMP=objdump
melunko@47
  6105
test -z "$RANLIB" && RANLIB=:
melunko@47
  6106
test -z "$STRIP" && STRIP=:
melunko@47
  6107
test -z "$ac_objext" && ac_objext=o
melunko@47
  6108
melunko@47
  6109
# Determine commands to create old-style static archives.
melunko@47
  6110
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
melunko@47
  6111
old_postinstall_cmds='chmod 644 $oldlib'
melunko@47
  6112
old_postuninstall_cmds=
melunko@47
  6113
melunko@47
  6114
if test -n "$RANLIB"; then
melunko@47
  6115
  case $host_os in
melunko@47
  6116
  openbsd*)
melunko@47
  6117
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
melunko@47
  6118
    ;;
melunko@47
  6119
  *)
melunko@47
  6120
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
melunko@47
  6121
    ;;
melunko@47
  6122
  esac
melunko@47
  6123
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
melunko@47
  6124
fi
melunko@47
  6125
melunko@47
  6126
for cc_temp in $compiler""; do
melunko@47
  6127
  case $cc_temp in
melunko@47
  6128
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
melunko@47
  6129
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
melunko@47
  6130
    \-*) ;;
melunko@47
  6131
    *) break;;
melunko@47
  6132
  esac
melunko@47
  6133
done
melunko@47
  6134
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
melunko@47
  6135
melunko@47
  6136
melunko@47
  6137
# Only perform the check for file, if the check method requires it
melunko@47
  6138
case $deplibs_check_method in
melunko@47
  6139
file_magic*)
melunko@47
  6140
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
melunko@47
  6141
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
melunko@47
  6142
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
melunko@47
  6143
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
melunko@47
  6144
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  6145
else
melunko@47
  6146
  case $MAGIC_CMD in
melunko@47
  6147
[\\/*] |  ?:[\\/]*)
melunko@47
  6148
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
melunko@47
  6149
  ;;
melunko@47
  6150
*)
melunko@47
  6151
  lt_save_MAGIC_CMD="$MAGIC_CMD"
melunko@47
  6152
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
melunko@47
  6153
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
melunko@47
  6154
  for ac_dir in $ac_dummy; do
melunko@47
  6155
    IFS="$lt_save_ifs"
melunko@47
  6156
    test -z "$ac_dir" && ac_dir=.
melunko@47
  6157
    if test -f $ac_dir/${ac_tool_prefix}file; then
melunko@47
  6158
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
melunko@47
  6159
      if test -n "$file_magic_test_file"; then
melunko@47
  6160
	case $deplibs_check_method in
melunko@47
  6161
	"file_magic "*)
melunko@47
  6162
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
melunko@47
  6163
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
melunko@47
  6164
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
melunko@47
  6165
	    $EGREP "$file_magic_regex" > /dev/null; then
melunko@47
  6166
	    :
melunko@47
  6167
	  else
melunko@47
  6168
	    cat <<EOF 1>&2
melunko@47
  6169
melunko@47
  6170
*** Warning: the command libtool uses to detect shared libraries,
melunko@47
  6171
*** $file_magic_cmd, produces output that libtool cannot recognize.
melunko@47
  6172
*** The result is that libtool may fail to recognize shared libraries
melunko@47
  6173
*** as such.  This will affect the creation of libtool libraries that
melunko@47
  6174
*** depend on shared libraries, but programs linked with such libtool
melunko@47
  6175
*** libraries will work regardless of this problem.  Nevertheless, you
melunko@47
  6176
*** may want to report the problem to your system manager and/or to
melunko@47
  6177
*** bug-libtool@gnu.org
melunko@47
  6178
melunko@47
  6179
EOF
melunko@47
  6180
	  fi ;;
melunko@47
  6181
	esac
melunko@47
  6182
      fi
melunko@47
  6183
      break
melunko@47
  6184
    fi
melunko@47
  6185
  done
melunko@47
  6186
  IFS="$lt_save_ifs"
melunko@47
  6187
  MAGIC_CMD="$lt_save_MAGIC_CMD"
melunko@47
  6188
  ;;
melunko@47
  6189
esac
melunko@47
  6190
fi
melunko@47
  6191
melunko@47
  6192
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
melunko@47
  6193
if test -n "$MAGIC_CMD"; then
melunko@47
  6194
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
melunko@47
  6195
echo "${ECHO_T}$MAGIC_CMD" >&6
melunko@47
  6196
else
melunko@47
  6197
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  6198
echo "${ECHO_T}no" >&6
melunko@47
  6199
fi
melunko@47
  6200
melunko@47
  6201
if test -z "$lt_cv_path_MAGIC_CMD"; then
melunko@47
  6202
  if test -n "$ac_tool_prefix"; then
melunko@47
  6203
    echo "$as_me:$LINENO: checking for file" >&5
melunko@47
  6204
echo $ECHO_N "checking for file... $ECHO_C" >&6
melunko@47
  6205
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
melunko@47
  6206
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  6207
else
melunko@47
  6208
  case $MAGIC_CMD in
melunko@47
  6209
[\\/*] |  ?:[\\/]*)
melunko@47
  6210
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
melunko@47
  6211
  ;;
melunko@47
  6212
*)
melunko@47
  6213
  lt_save_MAGIC_CMD="$MAGIC_CMD"
melunko@47
  6214
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
melunko@47
  6215
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
melunko@47
  6216
  for ac_dir in $ac_dummy; do
melunko@47
  6217
    IFS="$lt_save_ifs"
melunko@47
  6218
    test -z "$ac_dir" && ac_dir=.
melunko@47
  6219
    if test -f $ac_dir/file; then
melunko@47
  6220
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
melunko@47
  6221
      if test -n "$file_magic_test_file"; then
melunko@47
  6222
	case $deplibs_check_method in
melunko@47
  6223
	"file_magic "*)
melunko@47
  6224
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
melunko@47
  6225
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
melunko@47
  6226
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
melunko@47
  6227
	    $EGREP "$file_magic_regex" > /dev/null; then
melunko@47
  6228
	    :
melunko@47
  6229
	  else
melunko@47
  6230
	    cat <<EOF 1>&2
melunko@47
  6231
melunko@47
  6232
*** Warning: the command libtool uses to detect shared libraries,
melunko@47
  6233
*** $file_magic_cmd, produces output that libtool cannot recognize.
melunko@47
  6234
*** The result is that libtool may fail to recognize shared libraries
melunko@47
  6235
*** as such.  This will affect the creation of libtool libraries that
melunko@47
  6236
*** depend on shared libraries, but programs linked with such libtool
melunko@47
  6237
*** libraries will work regardless of this problem.  Nevertheless, you
melunko@47
  6238
*** may want to report the problem to your system manager and/or to
melunko@47
  6239
*** bug-libtool@gnu.org
melunko@47
  6240
melunko@47
  6241
EOF
melunko@47
  6242
	  fi ;;
melunko@47
  6243
	esac
melunko@47
  6244
      fi
melunko@47
  6245
      break
melunko@47
  6246
    fi
melunko@47
  6247
  done
melunko@47
  6248
  IFS="$lt_save_ifs"
melunko@47
  6249
  MAGIC_CMD="$lt_save_MAGIC_CMD"
melunko@47
  6250
  ;;
melunko@47
  6251
esac
melunko@47
  6252
fi
melunko@47
  6253
melunko@47
  6254
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
melunko@47
  6255
if test -n "$MAGIC_CMD"; then
melunko@47
  6256
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
melunko@47
  6257
echo "${ECHO_T}$MAGIC_CMD" >&6
melunko@47
  6258
else
melunko@47
  6259
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  6260
echo "${ECHO_T}no" >&6
melunko@47
  6261
fi
melunko@47
  6262
melunko@47
  6263
  else
melunko@47
  6264
    MAGIC_CMD=:
melunko@47
  6265
  fi
melunko@47
  6266
fi
melunko@47
  6267
melunko@47
  6268
  fi
melunko@47
  6269
  ;;
melunko@47
  6270
esac
melunko@47
  6271
melunko@47
  6272
enable_dlopen=no
melunko@47
  6273
enable_win32_dll=no
melunko@47
  6274
melunko@47
  6275
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
melunko@47
  6276
if test "${enable_libtool_lock+set}" = set; then
melunko@47
  6277
  enableval="$enable_libtool_lock"
melunko@47
  6278
  
melunko@47
  6279
fi; 
melunko@47
  6280
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
melunko@47
  6281
melunko@47
  6282
melunko@47
  6283
# Check whether --with-pic or --without-pic was given.
melunko@47
  6284
if test "${with_pic+set}" = set; then
melunko@47
  6285
  withval="$with_pic"
melunko@47
  6286
  pic_mode="$withval"
melunko@47
  6287
else
melunko@47
  6288
  pic_mode=default
melunko@47
  6289
fi; 
melunko@47
  6290
test -z "$pic_mode" && pic_mode=default
melunko@47
  6291
melunko@47
  6292
# Use C for the default configuration in the libtool script
melunko@47
  6293
tagname=
melunko@47
  6294
lt_save_CC="$CC"
melunko@47
  6295
ac_ext=c
melunko@47
  6296
ac_cpp='$CPP $CPPFLAGS'
melunko@47
  6297
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  6298
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  6299
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
  6300
melunko@47
  6301
melunko@47
  6302
# Source file extension for C test sources.
melunko@47
  6303
ac_ext=c
melunko@47
  6304
melunko@47
  6305
# Object file extension for compiled C test sources.
melunko@47
  6306
objext=o
melunko@47
  6307
objext=$objext
melunko@47
  6308
melunko@47
  6309
# Code to be used in simple compile tests
melunko@47
  6310
lt_simple_compile_test_code="int some_variable = 0;\n"
melunko@47
  6311
melunko@47
  6312
# Code to be used in simple link tests
melunko@47
  6313
lt_simple_link_test_code='int main(){return(0);}\n'
melunko@47
  6314
melunko@47
  6315
melunko@47
  6316
# If no C compiler was specified, use CC.
melunko@47
  6317
LTCC=${LTCC-"$CC"}
melunko@47
  6318
melunko@47
  6319
# Allow CC to be a program name with arguments.
melunko@47
  6320
compiler=$CC
melunko@47
  6321
melunko@47
  6322
melunko@47
  6323
# save warnings/boilerplate of simple test code
melunko@47
  6324
ac_outfile=conftest.$ac_objext
melunko@47
  6325
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
melunko@47
  6326
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
melunko@47
  6327
_lt_compiler_boilerplate=`cat conftest.err`
melunko@47
  6328
$rm conftest*
melunko@47
  6329
melunko@47
  6330
ac_outfile=conftest.$ac_objext
melunko@47
  6331
printf "$lt_simple_link_test_code" >conftest.$ac_ext
melunko@47
  6332
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
melunko@47
  6333
_lt_linker_boilerplate=`cat conftest.err`
melunko@47
  6334
$rm conftest*
melunko@47
  6335
melunko@47
  6336
melunko@47
  6337
#
melunko@47
  6338
# Check for any special shared library compilation flags.
melunko@47
  6339
#
melunko@47
  6340
lt_prog_cc_shlib=
melunko@47
  6341
if test "$GCC" = no; then
melunko@47
  6342
  case $host_os in
melunko@47
  6343
  sco3.2v5*)
melunko@47
  6344
    lt_prog_cc_shlib='-belf'
melunko@47
  6345
    ;;
melunko@47
  6346
  esac
melunko@47
  6347
fi
melunko@47
  6348
if test -n "$lt_prog_cc_shlib"; then
melunko@47
  6349
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
melunko@47
  6350
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
melunko@47
  6351
  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
melunko@47
  6352
  else
melunko@47
  6353
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
melunko@47
  6354
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
melunko@47
  6355
    lt_cv_prog_cc_can_build_shared=no
melunko@47
  6356
  fi
melunko@47
  6357
fi
melunko@47
  6358
melunko@47
  6359
melunko@47
  6360
#
melunko@47
  6361
# Check to make sure the static flag actually works.
melunko@47
  6362
#
melunko@47
  6363
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
melunko@47
  6364
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
melunko@47
  6365
if test "${lt_prog_compiler_static_works+set}" = set; then
melunko@47
  6366
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  6367
else
melunko@47
  6368
  lt_prog_compiler_static_works=no
melunko@47
  6369
   save_LDFLAGS="$LDFLAGS"
melunko@47
  6370
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
melunko@47
  6371
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
melunko@47
  6372
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
melunko@47
  6373
     # The linker can only warn and ignore the option if not recognized
melunko@47
  6374
     # So say no if there are warnings
melunko@47
  6375
     if test -s conftest.err; then
melunko@47
  6376
       # Append any errors to the config.log.
melunko@47
  6377
       cat conftest.err 1>&5
melunko@47
  6378
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
melunko@47
  6379
       $SED '/^$/d' conftest.err >conftest.er2
melunko@47
  6380
       if diff conftest.exp conftest.er2 >/dev/null; then
melunko@47
  6381
         lt_prog_compiler_static_works=yes
melunko@47
  6382
       fi
melunko@47
  6383
     else
melunko@47
  6384
       lt_prog_compiler_static_works=yes
melunko@47
  6385
     fi
melunko@47
  6386
   fi
melunko@47
  6387
   $rm conftest*
melunko@47
  6388
   LDFLAGS="$save_LDFLAGS"
melunko@47
  6389
melunko@47
  6390
fi
melunko@47
  6391
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
melunko@47
  6392
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
melunko@47
  6393
melunko@47
  6394
if test x"$lt_prog_compiler_static_works" = xyes; then
melunko@47
  6395
    :
melunko@47
  6396
else
melunko@47
  6397
    lt_prog_compiler_static=
melunko@47
  6398
fi
melunko@47
  6399
melunko@47
  6400
melunko@47
  6401
melunko@47
  6402
melunko@47
  6403
lt_prog_compiler_no_builtin_flag=
melunko@47
  6404
melunko@47
  6405
if test "$GCC" = yes; then
melunko@47
  6406
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
melunko@47
  6407
melunko@47
  6408
  
melunko@47
  6409
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
melunko@47
  6410
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
melunko@47
  6411
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
melunko@47
  6412
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  6413
else
melunko@47
  6414
  lt_cv_prog_compiler_rtti_exceptions=no
melunko@47
  6415
  ac_outfile=conftest.$ac_objext
melunko@47
  6416
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
melunko@47
  6417
   lt_compiler_flag="-fno-rtti -fno-exceptions"
melunko@47
  6418
   # Insert the option either (1) after the last *FLAGS variable, or
melunko@47
  6419
   # (2) before a word containing "conftest.", or (3) at the end.
melunko@47
  6420
   # Note that $ac_compile itself does not contain backslashes and begins
melunko@47
  6421
   # with a dollar sign (not a hyphen), so the echo should work correctly.
melunko@47
  6422
   # The option is referenced via a variable to avoid confusing sed.
melunko@47
  6423
   lt_compile=`echo "$ac_compile" | $SED \
melunko@47
  6424
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
melunko@47
  6425
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
melunko@47
  6426
   -e 's:$: $lt_compiler_flag:'`
melunko@47
  6427
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
melunko@47
  6428
   (eval "$lt_compile" 2>conftest.err)
melunko@47
  6429
   ac_status=$?
melunko@47
  6430
   cat conftest.err >&5
melunko@47
  6431
   echo "$as_me:__oline__: \$? = $ac_status" >&5
melunko@47
  6432
   if (exit $ac_status) && test -s "$ac_outfile"; then
melunko@47
  6433
     # The compiler can only warn and ignore the option if not recognized
melunko@47
  6434
     # So say no if there are warnings other than the usual output.
melunko@47
  6435
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
melunko@47
  6436
     $SED '/^$/d' conftest.err >conftest.er2
melunko@47
  6437
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
melunko@47
  6438
       lt_cv_prog_compiler_rtti_exceptions=yes
melunko@47
  6439
     fi
melunko@47
  6440
   fi
melunko@47
  6441
   $rm conftest*
melunko@47
  6442
melunko@47
  6443
fi
melunko@47
  6444
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
melunko@47
  6445
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
melunko@47
  6446
melunko@47
  6447
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
melunko@47
  6448
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
melunko@47
  6449
else
melunko@47
  6450
    :
melunko@47
  6451
fi
melunko@47
  6452
melunko@47
  6453
fi
melunko@47
  6454
melunko@47
  6455
lt_prog_compiler_wl=
melunko@47
  6456
lt_prog_compiler_pic=
melunko@47
  6457
lt_prog_compiler_static=
melunko@47
  6458
melunko@47
  6459
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
melunko@47
  6460
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
melunko@47
  6461
 
melunko@47
  6462
  if test "$GCC" = yes; then
melunko@47
  6463
    lt_prog_compiler_wl='-Wl,'
melunko@47
  6464
    lt_prog_compiler_static='-static'
melunko@47
  6465
melunko@47
  6466
    case $host_os in
melunko@47
  6467
      aix*)
melunko@47
  6468
      # All AIX code is PIC.
melunko@47
  6469
      if test "$host_cpu" = ia64; then
melunko@47
  6470
	# AIX 5 now supports IA64 processor
melunko@47
  6471
	lt_prog_compiler_static='-Bstatic'
melunko@47
  6472
      fi
melunko@47
  6473
      ;;
melunko@47
  6474
melunko@47
  6475
    amigaos*)
melunko@47
  6476
      # FIXME: we need at least 68020 code to build shared libraries, but
melunko@47
  6477
      # adding the `-m68020' flag to GCC prevents building anything better,
melunko@47
  6478
      # like `-m68040'.
melunko@47
  6479
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
melunko@47
  6480
      ;;
melunko@47
  6481
melunko@47
  6482
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
melunko@47
  6483
      # PIC is the default for these OSes.
melunko@47
  6484
      ;;
melunko@47
  6485
melunko@47
  6486
    mingw* | pw32* | os2*)
melunko@47
  6487
      # This hack is so that the source file can tell whether it is being
melunko@47
  6488
      # built for inclusion in a dll (and should export symbols for example).
melunko@47
  6489
      lt_prog_compiler_pic='-DDLL_EXPORT'
melunko@47
  6490
      ;;
melunko@47
  6491
melunko@47
  6492
    darwin* | rhapsody*)
melunko@47
  6493
      # PIC is the default on this platform
melunko@47
  6494
      # Common symbols not allowed in MH_DYLIB files
melunko@47
  6495
      lt_prog_compiler_pic='-fno-common'
melunko@47
  6496
      ;;
melunko@47
  6497
melunko@47
  6498
    msdosdjgpp*)
melunko@47
  6499
      # Just because we use GCC doesn't mean we suddenly get shared libraries
melunko@47
  6500
      # on systems that don't support them.
melunko@47
  6501
      lt_prog_compiler_can_build_shared=no
melunko@47
  6502
      enable_shared=no
melunko@47
  6503
      ;;
melunko@47
  6504
melunko@47
  6505
    sysv4*MP*)
melunko@47
  6506
      if test -d /usr/nec; then
melunko@47
  6507
	lt_prog_compiler_pic=-Kconform_pic
melunko@47
  6508
      fi
melunko@47
  6509
      ;;
melunko@47
  6510
melunko@47
  6511
    hpux*)
melunko@47
  6512
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
melunko@47
  6513
      # not for PA HP-UX.
melunko@47
  6514
      case $host_cpu in
melunko@47
  6515
      hppa*64*|ia64*)
melunko@47
  6516
	# +Z the default
melunko@47
  6517
	;;
melunko@47
  6518
      *)
melunko@47
  6519
	lt_prog_compiler_pic='-fPIC'
melunko@47
  6520
	;;
melunko@47
  6521
      esac
melunko@47
  6522
      ;;
melunko@47
  6523
melunko@47
  6524
    *)
melunko@47
  6525
      lt_prog_compiler_pic='-fPIC'
melunko@47
  6526
      ;;
melunko@47
  6527
    esac
melunko@47
  6528
  else
melunko@47
  6529
    # PORTME Check for flag to pass linker flags through the system compiler.
melunko@47
  6530
    case $host_os in
melunko@47
  6531
    aix*)
melunko@47
  6532
      lt_prog_compiler_wl='-Wl,'
melunko@47
  6533
      if test "$host_cpu" = ia64; then
melunko@47
  6534
	# AIX 5 now supports IA64 processor
melunko@47
  6535
	lt_prog_compiler_static='-Bstatic'
melunko@47
  6536
      else
melunko@47
  6537
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
melunko@47
  6538
      fi
melunko@47
  6539
      ;;
melunko@47
  6540
      darwin*)
melunko@47
  6541
        # PIC is the default on this platform
melunko@47
  6542
        # Common symbols not allowed in MH_DYLIB files
melunko@47
  6543
       case $cc_basename in
melunko@47
  6544
         xlc*)
melunko@47
  6545
         lt_prog_compiler_pic='-qnocommon'
melunko@47
  6546
         lt_prog_compiler_wl='-Wl,'
melunko@47
  6547
         ;;
melunko@47
  6548
       esac
melunko@47
  6549
       ;;
melunko@47
  6550
melunko@47
  6551
    mingw* | pw32* | os2*)
melunko@47
  6552
      # This hack is so that the source file can tell whether it is being
melunko@47
  6553
      # built for inclusion in a dll (and should export symbols for example).
melunko@47
  6554
      lt_prog_compiler_pic='-DDLL_EXPORT'
melunko@47
  6555
      ;;
melunko@47
  6556
melunko@47
  6557
    hpux9* | hpux10* | hpux11*)
melunko@47
  6558
      lt_prog_compiler_wl='-Wl,'
melunko@47
  6559
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
melunko@47
  6560
      # not for PA HP-UX.
melunko@47
  6561
      case $host_cpu in
melunko@47
  6562
      hppa*64*|ia64*)
melunko@47
  6563
	# +Z the default
melunko@47
  6564
	;;
melunko@47
  6565
      *)
melunko@47
  6566
	lt_prog_compiler_pic='+Z'
melunko@47
  6567
	;;
melunko@47
  6568
      esac
melunko@47
  6569
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
melunko@47
  6570
      lt_prog_compiler_static='${wl}-a ${wl}archive'
melunko@47
  6571
      ;;
melunko@47
  6572
melunko@47
  6573
    irix5* | irix6* | nonstopux*)
melunko@47
  6574
      lt_prog_compiler_wl='-Wl,'
melunko@47
  6575
      # PIC (with -KPIC) is the default.
melunko@47
  6576
      lt_prog_compiler_static='-non_shared'
melunko@47
  6577
      ;;
melunko@47
  6578
melunko@47
  6579
    newsos6)
melunko@47
  6580
      lt_prog_compiler_pic='-KPIC'
melunko@47
  6581
      lt_prog_compiler_static='-Bstatic'
melunko@47
  6582
      ;;
melunko@47
  6583
melunko@47
  6584
    linux*)
melunko@47
  6585
      case $cc_basename in
melunko@47
  6586
      icc* | ecc*)
melunko@47
  6587
	lt_prog_compiler_wl='-Wl,'
melunko@47
  6588
	lt_prog_compiler_pic='-KPIC'
melunko@47
  6589
	lt_prog_compiler_static='-static'
melunko@47
  6590
        ;;
melunko@47
  6591
      pgcc* | pgf77* | pgf90* | pgf95*)
melunko@47
  6592
        # Portland Group compilers (*not* the Pentium gcc compiler,
melunko@47
  6593
	# which looks to be a dead project)
melunko@47
  6594
	lt_prog_compiler_wl='-Wl,'
melunko@47
  6595
	lt_prog_compiler_pic='-fpic'
melunko@47
  6596
	lt_prog_compiler_static='-Bstatic'
melunko@47
  6597
        ;;
melunko@47
  6598
      ccc*)
melunko@47
  6599
        lt_prog_compiler_wl='-Wl,'
melunko@47
  6600
        # All Alpha code is PIC.
melunko@47
  6601
        lt_prog_compiler_static='-non_shared'
melunko@47
  6602
        ;;
melunko@47
  6603
      esac
melunko@47
  6604
      ;;
melunko@47
  6605
melunko@47
  6606
    osf3* | osf4* | osf5*)
melunko@47
  6607
      lt_prog_compiler_wl='-Wl,'
melunko@47
  6608
      # All OSF/1 code is PIC.
melunko@47
  6609
      lt_prog_compiler_static='-non_shared'
melunko@47
  6610
      ;;
melunko@47
  6611
melunko@47
  6612
    sco3.2v5*)
melunko@47
  6613
      lt_prog_compiler_pic='-Kpic'
melunko@47
  6614
      lt_prog_compiler_static='-dn'
melunko@47
  6615
      ;;
melunko@47
  6616
melunko@47
  6617
    solaris*)
melunko@47
  6618
      lt_prog_compiler_pic='-KPIC'
melunko@47
  6619
      lt_prog_compiler_static='-Bstatic'
melunko@47
  6620
      case $cc_basename in
melunko@47
  6621
      f77* | f90* | f95*)
melunko@47
  6622
	lt_prog_compiler_wl='-Qoption ld ';;
melunko@47
  6623
      *)
melunko@47
  6624
	lt_prog_compiler_wl='-Wl,';;
melunko@47
  6625
      esac
melunko@47
  6626
      ;;
melunko@47
  6627
melunko@47
  6628
    sunos4*)
melunko@47
  6629
      lt_prog_compiler_wl='-Qoption ld '
melunko@47
  6630
      lt_prog_compiler_pic='-PIC'
melunko@47
  6631
      lt_prog_compiler_static='-Bstatic'
melunko@47
  6632
      ;;
melunko@47
  6633
melunko@47
  6634
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
melunko@47
  6635
      lt_prog_compiler_wl='-Wl,'
melunko@47
  6636
      lt_prog_compiler_pic='-KPIC'
melunko@47
  6637
      lt_prog_compiler_static='-Bstatic'
melunko@47
  6638
      ;;
melunko@47
  6639
melunko@47
  6640
    sysv4*MP*)
melunko@47
  6641
      if test -d /usr/nec ;then
melunko@47
  6642
	lt_prog_compiler_pic='-Kconform_pic'
melunko@47
  6643
	lt_prog_compiler_static='-Bstatic'
melunko@47
  6644
      fi
melunko@47
  6645
      ;;
melunko@47
  6646
melunko@47
  6647
    unicos*)
melunko@47
  6648
      lt_prog_compiler_wl='-Wl,'
melunko@47
  6649
      lt_prog_compiler_can_build_shared=no
melunko@47
  6650
      ;;
melunko@47
  6651
melunko@47
  6652
    uts4*)
melunko@47
  6653
      lt_prog_compiler_pic='-pic'
melunko@47
  6654
      lt_prog_compiler_static='-Bstatic'
melunko@47
  6655
      ;;
melunko@47
  6656
melunko@47
  6657
    *)
melunko@47
  6658
      lt_prog_compiler_can_build_shared=no
melunko@47
  6659
      ;;
melunko@47
  6660
    esac
melunko@47
  6661
  fi
melunko@47
  6662
melunko@47
  6663
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
melunko@47
  6664
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
melunko@47
  6665
melunko@47
  6666
#
melunko@47
  6667
# Check to make sure the PIC flag actually works.
melunko@47
  6668
#
melunko@47
  6669
if test -n "$lt_prog_compiler_pic"; then
melunko@47
  6670
  
melunko@47
  6671
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
melunko@47
  6672
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
melunko@47
  6673
if test "${lt_prog_compiler_pic_works+set}" = set; then
melunko@47
  6674
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  6675
else
melunko@47
  6676
  lt_prog_compiler_pic_works=no
melunko@47
  6677
  ac_outfile=conftest.$ac_objext
melunko@47
  6678
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
melunko@47
  6679
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
melunko@47
  6680
   # Insert the option either (1) after the last *FLAGS variable, or
melunko@47
  6681
   # (2) before a word containing "conftest.", or (3) at the end.
melunko@47
  6682
   # Note that $ac_compile itself does not contain backslashes and begins
melunko@47
  6683
   # with a dollar sign (not a hyphen), so the echo should work correctly.
melunko@47
  6684
   # The option is referenced via a variable to avoid confusing sed.
melunko@47
  6685
   lt_compile=`echo "$ac_compile" | $SED \
melunko@47
  6686
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
melunko@47
  6687
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
melunko@47
  6688
   -e 's:$: $lt_compiler_flag:'`
melunko@47
  6689
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
melunko@47
  6690
   (eval "$lt_compile" 2>conftest.err)
melunko@47
  6691
   ac_status=$?
melunko@47
  6692
   cat conftest.err >&5
melunko@47
  6693
   echo "$as_me:__oline__: \$? = $ac_status" >&5
melunko@47
  6694
   if (exit $ac_status) && test -s "$ac_outfile"; then
melunko@47
  6695
     # The compiler can only warn and ignore the option if not recognized
melunko@47
  6696
     # So say no if there are warnings other than the usual output.
melunko@47
  6697
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
melunko@47
  6698
     $SED '/^$/d' conftest.err >conftest.er2
melunko@47
  6699
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
melunko@47
  6700
       lt_prog_compiler_pic_works=yes
melunko@47
  6701
     fi
melunko@47
  6702
   fi
melunko@47
  6703
   $rm conftest*
melunko@47
  6704
melunko@47
  6705
fi
melunko@47
  6706
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
melunko@47
  6707
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
melunko@47
  6708
melunko@47
  6709
if test x"$lt_prog_compiler_pic_works" = xyes; then
melunko@47
  6710
    case $lt_prog_compiler_pic in
melunko@47
  6711
     "" | " "*) ;;
melunko@47
  6712
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
melunko@47
  6713
     esac
melunko@47
  6714
else
melunko@47
  6715
    lt_prog_compiler_pic=
melunko@47
  6716
     lt_prog_compiler_can_build_shared=no
melunko@47
  6717
fi
melunko@47
  6718
melunko@47
  6719
fi
melunko@47
  6720
case $host_os in
melunko@47
  6721
  # For platforms which do not support PIC, -DPIC is meaningless:
melunko@47
  6722
  *djgpp*)
melunko@47
  6723
    lt_prog_compiler_pic=
melunko@47
  6724
    ;;
melunko@47
  6725
  *)
melunko@47
  6726
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
melunko@47
  6727
    ;;
melunko@47
  6728
esac
melunko@47
  6729
melunko@47
  6730
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
melunko@47
  6731
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
melunko@47
  6732
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
melunko@47
  6733
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  6734
else
melunko@47
  6735
  lt_cv_prog_compiler_c_o=no
melunko@47
  6736
   $rm -r conftest 2>/dev/null
melunko@47
  6737
   mkdir conftest
melunko@47
  6738
   cd conftest
melunko@47
  6739
   mkdir out
melunko@47
  6740
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
melunko@47
  6741
melunko@47
  6742
   lt_compiler_flag="-o out/conftest2.$ac_objext"
melunko@47
  6743
   # Insert the option either (1) after the last *FLAGS variable, or
melunko@47
  6744
   # (2) before a word containing "conftest.", or (3) at the end.
melunko@47
  6745
   # Note that $ac_compile itself does not contain backslashes and begins
melunko@47
  6746
   # with a dollar sign (not a hyphen), so the echo should work correctly.
melunko@47
  6747
   lt_compile=`echo "$ac_compile" | $SED \
melunko@47
  6748
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
melunko@47
  6749
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
melunko@47
  6750
   -e 's:$: $lt_compiler_flag:'`
melunko@47
  6751
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
melunko@47
  6752
   (eval "$lt_compile" 2>out/conftest.err)
melunko@47
  6753
   ac_status=$?
melunko@47
  6754
   cat out/conftest.err >&5
melunko@47
  6755
   echo "$as_me:__oline__: \$? = $ac_status" >&5
melunko@47
  6756
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
melunko@47
  6757
   then
melunko@47
  6758
     # The compiler can only warn and ignore the option if not recognized
melunko@47
  6759
     # So say no if there are warnings
melunko@47
  6760
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
melunko@47
  6761
     $SED '/^$/d' out/conftest.err >out/conftest.er2
melunko@47
  6762
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
melunko@47
  6763
       lt_cv_prog_compiler_c_o=yes
melunko@47
  6764
     fi
melunko@47
  6765
   fi
melunko@47
  6766
   chmod u+w . 2>&5
melunko@47
  6767
   $rm conftest*
melunko@47
  6768
   # SGI C++ compiler will create directory out/ii_files/ for
melunko@47
  6769
   # template instantiation
melunko@47
  6770
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
melunko@47
  6771
   $rm out/* && rmdir out
melunko@47
  6772
   cd ..
melunko@47
  6773
   rmdir conftest
melunko@47
  6774
   $rm conftest*
melunko@47
  6775
melunko@47
  6776
fi
melunko@47
  6777
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
melunko@47
  6778
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
melunko@47
  6779
melunko@47
  6780
melunko@47
  6781
hard_links="nottested"
melunko@47
  6782
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
melunko@47
  6783
  # do not overwrite the value of need_locks provided by the user
melunko@47
  6784
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
melunko@47
  6785
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
melunko@47
  6786
  hard_links=yes
melunko@47
  6787
  $rm conftest*
melunko@47
  6788
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
melunko@47
  6789
  touch conftest.a
melunko@47
  6790
  ln conftest.a conftest.b 2>&5 || hard_links=no
melunko@47
  6791
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
melunko@47
  6792
  echo "$as_me:$LINENO: result: $hard_links" >&5
melunko@47
  6793
echo "${ECHO_T}$hard_links" >&6
melunko@47
  6794
  if test "$hard_links" = no; then
melunko@47
  6795
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
melunko@47
  6796
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
melunko@47
  6797
    need_locks=warn
melunko@47
  6798
  fi
melunko@47
  6799
else
melunko@47
  6800
  need_locks=no
melunko@47
  6801
fi
melunko@47
  6802
melunko@47
  6803
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
melunko@47
  6804
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
melunko@47
  6805
melunko@47
  6806
  runpath_var=
melunko@47
  6807
  allow_undefined_flag=
melunko@47
  6808
  enable_shared_with_static_runtimes=no
melunko@47
  6809
  archive_cmds=
melunko@47
  6810
  archive_expsym_cmds=
melunko@47
  6811
  old_archive_From_new_cmds=
melunko@47
  6812
  old_archive_from_expsyms_cmds=
melunko@47
  6813
  export_dynamic_flag_spec=
melunko@47
  6814
  whole_archive_flag_spec=
melunko@47
  6815
  thread_safe_flag_spec=
melunko@47
  6816
  hardcode_libdir_flag_spec=
melunko@47
  6817
  hardcode_libdir_flag_spec_ld=
melunko@47
  6818
  hardcode_libdir_separator=
melunko@47
  6819
  hardcode_direct=no
melunko@47
  6820
  hardcode_minus_L=no
melunko@47
  6821
  hardcode_shlibpath_var=unsupported
melunko@47
  6822
  link_all_deplibs=unknown
melunko@47
  6823
  hardcode_automatic=no
melunko@47
  6824
  module_cmds=
melunko@47
  6825
  module_expsym_cmds=
melunko@47
  6826
  always_export_symbols=no
melunko@47
  6827
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
melunko@47
  6828
  # include_expsyms should be a list of space-separated symbols to be *always*
melunko@47
  6829
  # included in the symbol list
melunko@47
  6830
  include_expsyms=
melunko@47
  6831
  # exclude_expsyms can be an extended regexp of symbols to exclude
melunko@47
  6832
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
melunko@47
  6833
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
melunko@47
  6834
  # as well as any symbol that contains `d'.
melunko@47
  6835
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
melunko@47
  6836
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
melunko@47
  6837
  # platforms (ab)use it in PIC code, but their linkers get confused if
melunko@47
  6838
  # the symbol is explicitly referenced.  Since portable code cannot
melunko@47
  6839
  # rely on this symbol name, it's probably fine to never include it in
melunko@47
  6840
  # preloaded symbol tables.
melunko@47
  6841
  extract_expsyms_cmds=
melunko@47
  6842
  # Just being paranoid about ensuring that cc_basename is set.
melunko@47
  6843
  for cc_temp in $compiler""; do
melunko@47
  6844
  case $cc_temp in
melunko@47
  6845
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
melunko@47
  6846
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
melunko@47
  6847
    \-*) ;;
melunko@47
  6848
    *) break;;
melunko@47
  6849
  esac
melunko@47
  6850
done
melunko@47
  6851
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
melunko@47
  6852
melunko@47
  6853
  case $host_os in
melunko@47
  6854
  cygwin* | mingw* | pw32*)
melunko@47
  6855
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
melunko@47
  6856
    # When not using gcc, we currently assume that we are using
melunko@47
  6857
    # Microsoft Visual C++.
melunko@47
  6858
    if test "$GCC" != yes; then
melunko@47
  6859
      with_gnu_ld=no
melunko@47
  6860
    fi
melunko@47
  6861
    ;;
melunko@47
  6862
  openbsd*)
melunko@47
  6863
    with_gnu_ld=no
melunko@47
  6864
    ;;
melunko@47
  6865
  esac
melunko@47
  6866
melunko@47
  6867
  ld_shlibs=yes
melunko@47
  6868
  if test "$with_gnu_ld" = yes; then
melunko@47
  6869
    # If archive_cmds runs LD, not CC, wlarc should be empty
melunko@47
  6870
    wlarc='${wl}'
melunko@47
  6871
melunko@47
  6872
    # Set some defaults for GNU ld with shared library support. These
melunko@47
  6873
    # are reset later if shared libraries are not supported. Putting them
melunko@47
  6874
    # here allows them to be overridden if necessary.
melunko@47
  6875
    runpath_var=LD_RUN_PATH
melunko@47
  6876
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
melunko@47
  6877
    export_dynamic_flag_spec='${wl}--export-dynamic'
melunko@47
  6878
    # ancient GNU ld didn't support --whole-archive et. al.
melunko@47
  6879
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
melunko@47
  6880
	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
melunko@47
  6881
      else
melunko@47
  6882
  	whole_archive_flag_spec=
melunko@47
  6883
    fi
melunko@47
  6884
    supports_anon_versioning=no
melunko@47
  6885
    case `$LD -v 2>/dev/null` in
melunko@47
  6886
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
melunko@47
  6887
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
melunko@47
  6888
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
melunko@47
  6889
      *\ 2.11.*) ;; # other 2.11 versions
melunko@47
  6890
      *) supports_anon_versioning=yes ;;
melunko@47
  6891
    esac
melunko@47
  6892
melunko@47
  6893
    # See if GNU ld supports shared libraries.
melunko@47
  6894
    case $host_os in
melunko@47
  6895
    aix3* | aix4* | aix5*)
melunko@47
  6896
      # On AIX/PPC, the GNU linker is very broken
melunko@47
  6897
      if test "$host_cpu" != ia64; then
melunko@47
  6898
	ld_shlibs=no
melunko@47
  6899
	cat <<EOF 1>&2
melunko@47
  6900
melunko@47
  6901
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
melunko@47
  6902
*** to be unable to reliably create shared libraries on AIX.
melunko@47
  6903
*** Therefore, libtool is disabling shared libraries support.  If you
melunko@47
  6904
*** really care for shared libraries, you may want to modify your PATH
melunko@47
  6905
*** so that a non-GNU linker is found, and then restart.
melunko@47
  6906
melunko@47
  6907
EOF
melunko@47
  6908
      fi
melunko@47
  6909
      ;;
melunko@47
  6910
melunko@47
  6911
    amigaos*)
melunko@47
  6912
      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)'
melunko@47
  6913
      hardcode_libdir_flag_spec='-L$libdir'
melunko@47
  6914
      hardcode_minus_L=yes
melunko@47
  6915
melunko@47
  6916
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
melunko@47
  6917
      # that the semantics of dynamic libraries on AmigaOS, at least up
melunko@47
  6918
      # to version 4, is to share data among multiple programs linked
melunko@47
  6919
      # with the same dynamic library.  Since this doesn't match the
melunko@47
  6920
      # behavior of shared libraries on other platforms, we can't use
melunko@47
  6921
      # them.
melunko@47
  6922
      ld_shlibs=no
melunko@47
  6923
      ;;
melunko@47
  6924
melunko@47
  6925
    beos*)
melunko@47
  6926
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
melunko@47
  6927
	allow_undefined_flag=unsupported
melunko@47
  6928
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
melunko@47
  6929
	# support --undefined.  This deserves some investigation.  FIXME
melunko@47
  6930
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
  6931
      else
melunko@47
  6932
	ld_shlibs=no
melunko@47
  6933
      fi
melunko@47
  6934
      ;;
melunko@47
  6935
melunko@47
  6936
    cygwin* | mingw* | pw32*)
melunko@47
  6937
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
melunko@47
  6938
      # as there is no search path for DLLs.
melunko@47
  6939
      hardcode_libdir_flag_spec='-L$libdir'
melunko@47
  6940
      allow_undefined_flag=unsupported
melunko@47
  6941
      always_export_symbols=no
melunko@47
  6942
      enable_shared_with_static_runtimes=yes
melunko@47
  6943
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
melunko@47
  6944
melunko@47
  6945
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
melunko@47
  6946
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
melunko@47
  6947
	# If the export-symbols file already is a .def file (1st line
melunko@47
  6948
	# is EXPORTS), use it as is; otherwise, prepend...
melunko@47
  6949
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
melunko@47
  6950
	  cp $export_symbols $output_objdir/$soname.def;
melunko@47
  6951
	else
melunko@47
  6952
	  echo EXPORTS > $output_objdir/$soname.def;
melunko@47
  6953
	  cat $export_symbols >> $output_objdir/$soname.def;
melunko@47
  6954
	fi~
melunko@47
  6955
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
melunko@47
  6956
      else
melunko@47
  6957
	ld_shlibs=no
melunko@47
  6958
      fi
melunko@47
  6959
      ;;
melunko@47
  6960
melunko@47
  6961
    linux*)
melunko@47
  6962
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
melunko@47
  6963
	tmp_addflag=
melunko@47
  6964
	case $cc_basename,$host_cpu in
melunko@47
  6965
	pgcc*)				# Portland Group C compiler
melunko@47
  6966
	  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'
melunko@47
  6967
	  tmp_addflag=' $pic_flag'
melunko@47
  6968
	  ;;
melunko@47
  6969
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
melunko@47
  6970
	  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'
melunko@47
  6971
	  tmp_addflag=' $pic_flag -Mnomain' ;;
melunko@47
  6972
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
melunko@47
  6973
	  tmp_addflag=' -i_dynamic' ;;
melunko@47
  6974
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
melunko@47
  6975
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
melunko@47
  6976
	ifc* | ifort*)			# Intel Fortran compiler
melunko@47
  6977
	  tmp_addflag=' -nofor_main' ;;
melunko@47
  6978
	esac
melunko@47
  6979
	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
  6980
melunko@47
  6981
	if test $supports_anon_versioning = yes; then
melunko@47
  6982
	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
melunko@47
  6983
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
melunko@47
  6984
  $echo "local: *; };" >> $output_objdir/$libname.ver~
melunko@47
  6985
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
melunko@47
  6986
	fi
melunko@47
  6987
      else
melunko@47
  6988
	ld_shlibs=no
melunko@47
  6989
      fi
melunko@47
  6990
      ;;
melunko@47
  6991
melunko@47
  6992
    netbsd*)
melunko@47
  6993
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
melunko@47
  6994
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
melunko@47
  6995
	wlarc=
melunko@47
  6996
      else
melunko@47
  6997
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
  6998
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
melunko@47
  6999
      fi
melunko@47
  7000
      ;;
melunko@47
  7001
melunko@47
  7002
    solaris* | sysv5*)
melunko@47
  7003
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
melunko@47
  7004
	ld_shlibs=no
melunko@47
  7005
	cat <<EOF 1>&2
melunko@47
  7006
melunko@47
  7007
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
melunko@47
  7008
*** create shared libraries on Solaris systems.  Therefore, libtool
melunko@47
  7009
*** is disabling shared libraries support.  We urge you to upgrade GNU
melunko@47
  7010
*** binutils to release 2.9.1 or newer.  Another option is to modify
melunko@47
  7011
*** your PATH or compiler configuration so that the native linker is
melunko@47
  7012
*** used, and then restart.
melunko@47
  7013
melunko@47
  7014
EOF
melunko@47
  7015
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
melunko@47
  7016
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
  7017
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
melunko@47
  7018
      else
melunko@47
  7019
	ld_shlibs=no
melunko@47
  7020
      fi
melunko@47
  7021
      ;;
melunko@47
  7022
melunko@47
  7023
    sunos4*)
melunko@47
  7024
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7025
      wlarc=
melunko@47
  7026
      hardcode_direct=yes
melunko@47
  7027
      hardcode_shlibpath_var=no
melunko@47
  7028
      ;;
melunko@47
  7029
melunko@47
  7030
    *)
melunko@47
  7031
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
melunko@47
  7032
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
  7033
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
melunko@47
  7034
      else
melunko@47
  7035
	ld_shlibs=no
melunko@47
  7036
      fi
melunko@47
  7037
      ;;
melunko@47
  7038
    esac
melunko@47
  7039
melunko@47
  7040
    if test "$ld_shlibs" = no; then
melunko@47
  7041
      runpath_var=
melunko@47
  7042
      hardcode_libdir_flag_spec=
melunko@47
  7043
      export_dynamic_flag_spec=
melunko@47
  7044
      whole_archive_flag_spec=
melunko@47
  7045
    fi
melunko@47
  7046
  else
melunko@47
  7047
    # PORTME fill in a description of your system's linker (not GNU ld)
melunko@47
  7048
    case $host_os in
melunko@47
  7049
    aix3*)
melunko@47
  7050
      allow_undefined_flag=unsupported
melunko@47
  7051
      always_export_symbols=yes
melunko@47
  7052
      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'
melunko@47
  7053
      # Note: this linker hardcodes the directories in LIBPATH if there
melunko@47
  7054
      # are no directories specified by -L.
melunko@47
  7055
      hardcode_minus_L=yes
melunko@47
  7056
      if test "$GCC" = yes && test -z "$link_static_flag"; then
melunko@47
  7057
	# Neither direct hardcoding nor static linking is supported with a
melunko@47
  7058
	# broken collect2.
melunko@47
  7059
	hardcode_direct=unsupported
melunko@47
  7060
      fi
melunko@47
  7061
      ;;
melunko@47
  7062
melunko@47
  7063
    aix4* | aix5*)
melunko@47
  7064
      if test "$host_cpu" = ia64; then
melunko@47
  7065
	# On IA64, the linker does run time linking by default, so we don't
melunko@47
  7066
	# have to do anything special.
melunko@47
  7067
	aix_use_runtimelinking=no
melunko@47
  7068
	exp_sym_flag='-Bexport'
melunko@47
  7069
	no_entry_flag=""
melunko@47
  7070
      else
melunko@47
  7071
	# If we're using GNU nm, then we don't want the "-C" option.
melunko@47
  7072
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
melunko@47
  7073
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
melunko@47
  7074
	  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'
melunko@47
  7075
	else
melunko@47
  7076
	  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'
melunko@47
  7077
	fi
melunko@47
  7078
	aix_use_runtimelinking=no
melunko@47
  7079
melunko@47
  7080
	# Test if we are trying to use run time linking or normal
melunko@47
  7081
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
melunko@47
  7082
	# need to do runtime linking.
melunko@47
  7083
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
melunko@47
  7084
	  for ld_flag in $LDFLAGS; do
melunko@47
  7085
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
melunko@47
  7086
  	    aix_use_runtimelinking=yes
melunko@47
  7087
  	    break
melunko@47
  7088
  	  fi
melunko@47
  7089
	  done
melunko@47
  7090
	esac
melunko@47
  7091
melunko@47
  7092
	exp_sym_flag='-bexport'
melunko@47
  7093
	no_entry_flag='-bnoentry'
melunko@47
  7094
      fi
melunko@47
  7095
melunko@47
  7096
      # When large executables or shared objects are built, AIX ld can
melunko@47
  7097
      # have problems creating the table of contents.  If linking a library
melunko@47
  7098
      # or program results in "error TOC overflow" add -mminimal-toc to
melunko@47
  7099
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
melunko@47
  7100
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
melunko@47
  7101
melunko@47
  7102
      archive_cmds=''
melunko@47
  7103
      hardcode_direct=yes
melunko@47
  7104
      hardcode_libdir_separator=':'
melunko@47
  7105
      link_all_deplibs=yes
melunko@47
  7106
melunko@47
  7107
      if test "$GCC" = yes; then
melunko@47
  7108
	case $host_os in aix4.[012]|aix4.[012].*)
melunko@47
  7109
	# We only want to do this on AIX 4.2 and lower, the check
melunko@47
  7110
	# below for broken collect2 doesn't work under 4.3+
melunko@47
  7111
	  collect2name=`${CC} -print-prog-name=collect2`
melunko@47
  7112
	  if test -f "$collect2name" && \
melunko@47
  7113
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
melunko@47
  7114
	  then
melunko@47
  7115
  	  # We have reworked collect2
melunko@47
  7116
  	  hardcode_direct=yes
melunko@47
  7117
	  else
melunko@47
  7118
  	  # We have old collect2
melunko@47
  7119
  	  hardcode_direct=unsupported
melunko@47
  7120
  	  # It fails to find uninstalled libraries when the uninstalled
melunko@47
  7121
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
melunko@47
  7122
  	  # to unsupported forces relinking
melunko@47
  7123
  	  hardcode_minus_L=yes
melunko@47
  7124
  	  hardcode_libdir_flag_spec='-L$libdir'
melunko@47
  7125
  	  hardcode_libdir_separator=
melunko@47
  7126
	  fi
melunko@47
  7127
	esac
melunko@47
  7128
	shared_flag='-shared'
melunko@47
  7129
	if test "$aix_use_runtimelinking" = yes; then
melunko@47
  7130
	  shared_flag="$shared_flag "'${wl}-G'
melunko@47
  7131
	fi
melunko@47
  7132
      else
melunko@47
  7133
	# not using gcc
melunko@47
  7134
	if test "$host_cpu" = ia64; then
melunko@47
  7135
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
melunko@47
  7136
  	# chokes on -Wl,-G. The following line is correct:
melunko@47
  7137
	  shared_flag='-G'
melunko@47
  7138
	else
melunko@47
  7139
  	if test "$aix_use_runtimelinking" = yes; then
melunko@47
  7140
	    shared_flag='${wl}-G'
melunko@47
  7141
	  else
melunko@47
  7142
	    shared_flag='${wl}-bM:SRE'
melunko@47
  7143
  	fi
melunko@47
  7144
	fi
melunko@47
  7145
      fi
melunko@47
  7146
melunko@47
  7147
      # It seems that -bexpall does not export symbols beginning with
melunko@47
  7148
      # underscore (_), so it is better to generate a list of symbols to export.
melunko@47
  7149
      always_export_symbols=yes
melunko@47
  7150
      if test "$aix_use_runtimelinking" = yes; then
melunko@47
  7151
	# Warning - without using the other runtime loading flags (-brtl),
melunko@47
  7152
	# -berok will link without error, but may produce a broken library.
melunko@47
  7153
	allow_undefined_flag='-berok'
melunko@47
  7154
       # Determine the default libpath from the value encoded in an empty executable.
melunko@47
  7155
       cat >conftest.$ac_ext <<_ACEOF
melunko@47
  7156
/* confdefs.h.  */
melunko@47
  7157
_ACEOF
melunko@47
  7158
cat confdefs.h >>conftest.$ac_ext
melunko@47
  7159
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  7160
/* end confdefs.h.  */
melunko@47
  7161
melunko@47
  7162
int
melunko@47
  7163
main ()
melunko@47
  7164
{
melunko@47
  7165
melunko@47
  7166
  ;
melunko@47
  7167
  return 0;
melunko@47
  7168
}
melunko@47
  7169
_ACEOF
melunko@47
  7170
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
  7171
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  7172
  (eval $ac_link) 2>conftest.er1
melunko@47
  7173
  ac_status=$?
melunko@47
  7174
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  7175
  rm -f conftest.er1
melunko@47
  7176
  cat conftest.err >&5
melunko@47
  7177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  7178
  (exit $ac_status); } &&
melunko@47
  7179
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  7180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  7181
  (eval $ac_try) 2>&5
melunko@47
  7182
  ac_status=$?
melunko@47
  7183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  7184
  (exit $ac_status); }; } &&
melunko@47
  7185
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
  7186
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  7187
  (eval $ac_try) 2>&5
melunko@47
  7188
  ac_status=$?
melunko@47
  7189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  7190
  (exit $ac_status); }; }; then
melunko@47
  7191
  
melunko@47
  7192
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
  7193
}'`
melunko@47
  7194
# Check for a 64-bit object if we didn't find anything.
melunko@47
  7195
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
  7196
}'`; fi
melunko@47
  7197
else
melunko@47
  7198
  echo "$as_me: failed program was:" >&5
melunko@47
  7199
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  7200
melunko@47
  7201
fi
melunko@47
  7202
rm -f conftest.err conftest.$ac_objext \
melunko@47
  7203
      conftest$ac_exeext conftest.$ac_ext
melunko@47
  7204
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
melunko@47
  7205
melunko@47
  7206
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
melunko@47
  7207
	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
melunko@47
  7208
       else
melunko@47
  7209
	if test "$host_cpu" = ia64; then
melunko@47
  7210
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
melunko@47
  7211
	  allow_undefined_flag="-z nodefs"
melunko@47
  7212
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
melunko@47
  7213
	else
melunko@47
  7214
	 # Determine the default libpath from the value encoded in an empty executable.
melunko@47
  7215
	 cat >conftest.$ac_ext <<_ACEOF
melunko@47
  7216
/* confdefs.h.  */
melunko@47
  7217
_ACEOF
melunko@47
  7218
cat confdefs.h >>conftest.$ac_ext
melunko@47
  7219
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  7220
/* end confdefs.h.  */
melunko@47
  7221
melunko@47
  7222
int
melunko@47
  7223
main ()
melunko@47
  7224
{
melunko@47
  7225
melunko@47
  7226
  ;
melunko@47
  7227
  return 0;
melunko@47
  7228
}
melunko@47
  7229
_ACEOF
melunko@47
  7230
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
  7231
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  7232
  (eval $ac_link) 2>conftest.er1
melunko@47
  7233
  ac_status=$?
melunko@47
  7234
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  7235
  rm -f conftest.er1
melunko@47
  7236
  cat conftest.err >&5
melunko@47
  7237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  7238
  (exit $ac_status); } &&
melunko@47
  7239
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  7240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  7241
  (eval $ac_try) 2>&5
melunko@47
  7242
  ac_status=$?
melunko@47
  7243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  7244
  (exit $ac_status); }; } &&
melunko@47
  7245
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
  7246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  7247
  (eval $ac_try) 2>&5
melunko@47
  7248
  ac_status=$?
melunko@47
  7249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  7250
  (exit $ac_status); }; }; then
melunko@47
  7251
  
melunko@47
  7252
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
  7253
}'`
melunko@47
  7254
# Check for a 64-bit object if we didn't find anything.
melunko@47
  7255
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
  7256
}'`; fi
melunko@47
  7257
else
melunko@47
  7258
  echo "$as_me: failed program was:" >&5
melunko@47
  7259
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  7260
melunko@47
  7261
fi
melunko@47
  7262
rm -f conftest.err conftest.$ac_objext \
melunko@47
  7263
      conftest$ac_exeext conftest.$ac_ext
melunko@47
  7264
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
melunko@47
  7265
melunko@47
  7266
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
melunko@47
  7267
	  # Warning - without using the other run time loading flags,
melunko@47
  7268
	  # -berok will link without error, but may produce a broken library.
melunko@47
  7269
	  no_undefined_flag=' ${wl}-bernotok'
melunko@47
  7270
	  allow_undefined_flag=' ${wl}-berok'
melunko@47
  7271
	  # -bexpall does not export symbols beginning with underscore (_)
melunko@47
  7272
	  always_export_symbols=yes
melunko@47
  7273
	  # Exported symbols can be pulled into shared objects from archives
melunko@47
  7274
	  whole_archive_flag_spec=' '
melunko@47
  7275
	  archive_cmds_need_lc=yes
melunko@47
  7276
	  # This is similar to how AIX traditionally builds its shared libraries.
melunko@47
  7277
	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
melunko@47
  7278
	fi
melunko@47
  7279
      fi
melunko@47
  7280
      ;;
melunko@47
  7281
melunko@47
  7282
    amigaos*)
melunko@47
  7283
      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)'
melunko@47
  7284
      hardcode_libdir_flag_spec='-L$libdir'
melunko@47
  7285
      hardcode_minus_L=yes
melunko@47
  7286
      # see comment about different semantics on the GNU ld section
melunko@47
  7287
      ld_shlibs=no
melunko@47
  7288
      ;;
melunko@47
  7289
melunko@47
  7290
    bsdi[45]*)
melunko@47
  7291
      export_dynamic_flag_spec=-rdynamic
melunko@47
  7292
      ;;
melunko@47
  7293
melunko@47
  7294
    cygwin* | mingw* | pw32*)
melunko@47
  7295
      # When not using gcc, we currently assume that we are using
melunko@47
  7296
      # Microsoft Visual C++.
melunko@47
  7297
      # hardcode_libdir_flag_spec is actually meaningless, as there is
melunko@47
  7298
      # no search path for DLLs.
melunko@47
  7299
      hardcode_libdir_flag_spec=' '
melunko@47
  7300
      allow_undefined_flag=unsupported
melunko@47
  7301
      # Tell ltmain to make .lib files, not .a files.
melunko@47
  7302
      libext=lib
melunko@47
  7303
      # Tell ltmain to make .dll files, not .so files.
melunko@47
  7304
      shrext_cmds=".dll"
melunko@47
  7305
      # FIXME: Setting linknames here is a bad hack.
melunko@47
  7306
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
melunko@47
  7307
      # The linker will automatically build a .lib file if we build a DLL.
melunko@47
  7308
      old_archive_From_new_cmds='true'
melunko@47
  7309
      # FIXME: Should let the user specify the lib program.
melunko@47
  7310
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
melunko@47
  7311
      fix_srcfile_path='`cygpath -w "$srcfile"`'
melunko@47
  7312
      enable_shared_with_static_runtimes=yes
melunko@47
  7313
      ;;
melunko@47
  7314
melunko@47
  7315
    darwin* | rhapsody*)
melunko@47
  7316
      case $host_os in
melunko@47
  7317
        rhapsody* | darwin1.[012])
melunko@47
  7318
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
melunko@47
  7319
         ;;
melunko@47
  7320
       *) # Darwin 1.3 on
melunko@47
  7321
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
melunko@47
  7322
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
melunko@47
  7323
         else
melunko@47
  7324
           case ${MACOSX_DEPLOYMENT_TARGET} in
melunko@47
  7325
             10.[012])
melunko@47
  7326
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
melunko@47
  7327
               ;;
melunko@47
  7328
             10.*)
melunko@47
  7329
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
melunko@47
  7330
               ;;
melunko@47
  7331
           esac
melunko@47
  7332
         fi
melunko@47
  7333
         ;;
melunko@47
  7334
      esac
melunko@47
  7335
      archive_cmds_need_lc=no
melunko@47
  7336
      hardcode_direct=no
melunko@47
  7337
      hardcode_automatic=yes
melunko@47
  7338
      hardcode_shlibpath_var=unsupported
melunko@47
  7339
      whole_archive_flag_spec=''
melunko@47
  7340
      link_all_deplibs=yes
melunko@47
  7341
    if test "$GCC" = yes ; then
melunko@47
  7342
    	output_verbose_link_cmd='echo'
melunko@47
  7343
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
melunko@47
  7344
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
melunko@47
  7345
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
melunko@47
  7346
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
  7347
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
  7348
    else
melunko@47
  7349
      case $cc_basename in
melunko@47
  7350
        xlc*)
melunko@47
  7351
         output_verbose_link_cmd='echo'
melunko@47
  7352
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
melunko@47
  7353
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
melunko@47
  7354
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
melunko@47
  7355
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
  7356
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
  7357
          ;;
melunko@47
  7358
       *)
melunko@47
  7359
         ld_shlibs=no
melunko@47
  7360
          ;;
melunko@47
  7361
      esac
melunko@47
  7362
    fi
melunko@47
  7363
      ;;
melunko@47
  7364
melunko@47
  7365
    dgux*)
melunko@47
  7366
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7367
      hardcode_libdir_flag_spec='-L$libdir'
melunko@47
  7368
      hardcode_shlibpath_var=no
melunko@47
  7369
      ;;
melunko@47
  7370
melunko@47
  7371
    freebsd1*)
melunko@47
  7372
      ld_shlibs=no
melunko@47
  7373
      ;;
melunko@47
  7374
melunko@47
  7375
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
melunko@47
  7376
    # support.  Future versions do this automatically, but an explicit c++rt0.o
melunko@47
  7377
    # does not break anything, and helps significantly (at the cost of a little
melunko@47
  7378
    # extra space).
melunko@47
  7379
    freebsd2.2*)
melunko@47
  7380
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
melunko@47
  7381
      hardcode_libdir_flag_spec='-R$libdir'
melunko@47
  7382
      hardcode_direct=yes
melunko@47
  7383
      hardcode_shlibpath_var=no
melunko@47
  7384
      ;;
melunko@47
  7385
melunko@47
  7386
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
melunko@47
  7387
    freebsd2*)
melunko@47
  7388
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7389
      hardcode_direct=yes
melunko@47
  7390
      hardcode_minus_L=yes
melunko@47
  7391
      hardcode_shlibpath_var=no
melunko@47
  7392
      ;;
melunko@47
  7393
melunko@47
  7394
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
melunko@47
  7395
    freebsd* | kfreebsd*-gnu | dragonfly*)
melunko@47
  7396
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
  7397
      hardcode_libdir_flag_spec='-R$libdir'
melunko@47
  7398
      hardcode_direct=yes
melunko@47
  7399
      hardcode_shlibpath_var=no
melunko@47
  7400
      ;;
melunko@47
  7401
melunko@47
  7402
    hpux9*)
melunko@47
  7403
      if test "$GCC" = yes; then
melunko@47
  7404
	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'
melunko@47
  7405
      else
melunko@47
  7406
	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'
melunko@47
  7407
      fi
melunko@47
  7408
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
melunko@47
  7409
      hardcode_libdir_separator=:
melunko@47
  7410
      hardcode_direct=yes
melunko@47
  7411
melunko@47
  7412
      # hardcode_minus_L: Not really in the search PATH,
melunko@47
  7413
      # but as the default location of the library.
melunko@47
  7414
      hardcode_minus_L=yes
melunko@47
  7415
      export_dynamic_flag_spec='${wl}-E'
melunko@47
  7416
      ;;
melunko@47
  7417
melunko@47
  7418
    hpux10* | hpux11*)
melunko@47
  7419
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
melunko@47
  7420
	case $host_cpu in
melunko@47
  7421
	hppa*64*|ia64*)
melunko@47
  7422
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
  7423
	  ;;
melunko@47
  7424
	*)
melunko@47
  7425
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
  7426
	  ;;
melunko@47
  7427
	esac
melunko@47
  7428
      else
melunko@47
  7429
	case $host_cpu in
melunko@47
  7430
	hppa*64*|ia64*)
melunko@47
  7431
	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7432
	  ;;
melunko@47
  7433
	*)
melunko@47
  7434
	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7435
	  ;;
melunko@47
  7436
	esac
melunko@47
  7437
      fi
melunko@47
  7438
      if test "$with_gnu_ld" = no; then
melunko@47
  7439
	case $host_cpu in
melunko@47
  7440
	hppa*64*)
melunko@47
  7441
	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
melunko@47
  7442
	  hardcode_libdir_flag_spec_ld='+b $libdir'
melunko@47
  7443
	  hardcode_libdir_separator=:
melunko@47
  7444
	  hardcode_direct=no
melunko@47
  7445
	  hardcode_shlibpath_var=no
melunko@47
  7446
	  ;;
melunko@47
  7447
	ia64*)
melunko@47
  7448
	  hardcode_libdir_flag_spec='-L$libdir'
melunko@47
  7449
	  hardcode_direct=no
melunko@47
  7450
	  hardcode_shlibpath_var=no
melunko@47
  7451
melunko@47
  7452
	  # hardcode_minus_L: Not really in the search PATH,
melunko@47
  7453
	  # but as the default location of the library.
melunko@47
  7454
	  hardcode_minus_L=yes
melunko@47
  7455
	  ;;
melunko@47
  7456
	*)
melunko@47
  7457
	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
melunko@47
  7458
	  hardcode_libdir_separator=:
melunko@47
  7459
	  hardcode_direct=yes
melunko@47
  7460
	  export_dynamic_flag_spec='${wl}-E'
melunko@47
  7461
melunko@47
  7462
	  # hardcode_minus_L: Not really in the search PATH,
melunko@47
  7463
	  # but as the default location of the library.
melunko@47
  7464
	  hardcode_minus_L=yes
melunko@47
  7465
	  ;;
melunko@47
  7466
	esac
melunko@47
  7467
      fi
melunko@47
  7468
      ;;
melunko@47
  7469
melunko@47
  7470
    irix5* | irix6* | nonstopux*)
melunko@47
  7471
      if test "$GCC" = yes; then
melunko@47
  7472
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
melunko@47
  7473
      else
melunko@47
  7474
	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
melunko@47
  7475
	hardcode_libdir_flag_spec_ld='-rpath $libdir'
melunko@47
  7476
      fi
melunko@47
  7477
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
melunko@47
  7478
      hardcode_libdir_separator=:
melunko@47
  7479
      link_all_deplibs=yes
melunko@47
  7480
      ;;
melunko@47
  7481
melunko@47
  7482
    netbsd*)
melunko@47
  7483
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
melunko@47
  7484
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
melunko@47
  7485
      else
melunko@47
  7486
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
melunko@47
  7487
      fi
melunko@47
  7488
      hardcode_libdir_flag_spec='-R$libdir'
melunko@47
  7489
      hardcode_direct=yes
melunko@47
  7490
      hardcode_shlibpath_var=no
melunko@47
  7491
      ;;
melunko@47
  7492
melunko@47
  7493
    newsos6)
melunko@47
  7494
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7495
      hardcode_direct=yes
melunko@47
  7496
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
melunko@47
  7497
      hardcode_libdir_separator=:
melunko@47
  7498
      hardcode_shlibpath_var=no
melunko@47
  7499
      ;;
melunko@47
  7500
melunko@47
  7501
    openbsd*)
melunko@47
  7502
      hardcode_direct=yes
melunko@47
  7503
      hardcode_shlibpath_var=no
melunko@47
  7504
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
melunko@47
  7505
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
  7506
	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
melunko@47
  7507
	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
melunko@47
  7508
	export_dynamic_flag_spec='${wl}-E'
melunko@47
  7509
      else
melunko@47
  7510
       case $host_os in
melunko@47
  7511
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
melunko@47
  7512
	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7513
	   hardcode_libdir_flag_spec='-R$libdir'
melunko@47
  7514
	   ;;
melunko@47
  7515
	 *)
melunko@47
  7516
	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
  7517
	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
melunko@47
  7518
	   ;;
melunko@47
  7519
       esac
melunko@47
  7520
      fi
melunko@47
  7521
      ;;
melunko@47
  7522
melunko@47
  7523
    os2*)
melunko@47
  7524
      hardcode_libdir_flag_spec='-L$libdir'
melunko@47
  7525
      hardcode_minus_L=yes
melunko@47
  7526
      allow_undefined_flag=unsupported
melunko@47
  7527
      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'
melunko@47
  7528
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
melunko@47
  7529
      ;;
melunko@47
  7530
melunko@47
  7531
    osf3*)
melunko@47
  7532
      if test "$GCC" = yes; then
melunko@47
  7533
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
melunko@47
  7534
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
melunko@47
  7535
      else
melunko@47
  7536
	allow_undefined_flag=' -expect_unresolved \*'
melunko@47
  7537
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
melunko@47
  7538
      fi
melunko@47
  7539
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
melunko@47
  7540
      hardcode_libdir_separator=:
melunko@47
  7541
      ;;
melunko@47
  7542
melunko@47
  7543
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
melunko@47
  7544
      if test "$GCC" = yes; then
melunko@47
  7545
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
melunko@47
  7546
	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
melunko@47
  7547
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
melunko@47
  7548
      else
melunko@47
  7549
	allow_undefined_flag=' -expect_unresolved \*'
melunko@47
  7550
	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
melunko@47
  7551
	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
melunko@47
  7552
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
melunko@47
  7553
melunko@47
  7554
	# Both c and cxx compiler support -rpath directly
melunko@47
  7555
	hardcode_libdir_flag_spec='-rpath $libdir'
melunko@47
  7556
      fi
melunko@47
  7557
      hardcode_libdir_separator=:
melunko@47
  7558
      ;;
melunko@47
  7559
melunko@47
  7560
    sco3.2v5*)
melunko@47
  7561
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7562
      hardcode_shlibpath_var=no
melunko@47
  7563
      export_dynamic_flag_spec='${wl}-Bexport'
melunko@47
  7564
      runpath_var=LD_RUN_PATH
melunko@47
  7565
      hardcode_runpath_var=yes
melunko@47
  7566
      ;;
melunko@47
  7567
melunko@47
  7568
    solaris*)
melunko@47
  7569
      no_undefined_flag=' -z text'
melunko@47
  7570
      if test "$GCC" = yes; then
melunko@47
  7571
	wlarc='${wl}'
melunko@47
  7572
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
  7573
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
melunko@47
  7574
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
melunko@47
  7575
      else
melunko@47
  7576
	wlarc=''
melunko@47
  7577
	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7578
	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
melunko@47
  7579
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
melunko@47
  7580
      fi
melunko@47
  7581
      hardcode_libdir_flag_spec='-R$libdir'
melunko@47
  7582
      hardcode_shlibpath_var=no
melunko@47
  7583
      case $host_os in
melunko@47
  7584
      solaris2.[0-5] | solaris2.[0-5].*) ;;
melunko@47
  7585
      *)
melunko@47
  7586
 	# The compiler driver will combine linker options so we
melunko@47
  7587
 	# cannot just pass the convience library names through
melunko@47
  7588
 	# without $wl, iff we do not link with $LD.
melunko@47
  7589
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
melunko@47
  7590
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
melunko@47
  7591
 	case $wlarc in
melunko@47
  7592
 	'')
melunko@47
  7593
 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
melunko@47
  7594
 	*)
melunko@47
  7595
 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
melunko@47
  7596
 	esac ;;
melunko@47
  7597
      esac
melunko@47
  7598
      link_all_deplibs=yes
melunko@47
  7599
      ;;
melunko@47
  7600
melunko@47
  7601
    sunos4*)
melunko@47
  7602
      if test "x$host_vendor" = xsequent; then
melunko@47
  7603
	# Use $CC to link under sequent, because it throws in some extra .o
melunko@47
  7604
	# files that make .init and .fini sections work.
melunko@47
  7605
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
  7606
      else
melunko@47
  7607
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7608
      fi
melunko@47
  7609
      hardcode_libdir_flag_spec='-L$libdir'
melunko@47
  7610
      hardcode_direct=yes
melunko@47
  7611
      hardcode_minus_L=yes
melunko@47
  7612
      hardcode_shlibpath_var=no
melunko@47
  7613
      ;;
melunko@47
  7614
melunko@47
  7615
    sysv4)
melunko@47
  7616
      case $host_vendor in
melunko@47
  7617
	sni)
melunko@47
  7618
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7619
	  hardcode_direct=yes # is this really true???
melunko@47
  7620
	;;
melunko@47
  7621
	siemens)
melunko@47
  7622
	  ## LD is ld it makes a PLAMLIB
melunko@47
  7623
	  ## CC just makes a GrossModule.
melunko@47
  7624
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7625
	  reload_cmds='$CC -r -o $output$reload_objs'
melunko@47
  7626
	  hardcode_direct=no
melunko@47
  7627
        ;;
melunko@47
  7628
	motorola)
melunko@47
  7629
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7630
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
melunko@47
  7631
	;;
melunko@47
  7632
      esac
melunko@47
  7633
      runpath_var='LD_RUN_PATH'
melunko@47
  7634
      hardcode_shlibpath_var=no
melunko@47
  7635
      ;;
melunko@47
  7636
melunko@47
  7637
    sysv4.3*)
melunko@47
  7638
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7639
      hardcode_shlibpath_var=no
melunko@47
  7640
      export_dynamic_flag_spec='-Bexport'
melunko@47
  7641
      ;;
melunko@47
  7642
melunko@47
  7643
    sysv4*MP*)
melunko@47
  7644
      if test -d /usr/nec; then
melunko@47
  7645
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7646
	hardcode_shlibpath_var=no
melunko@47
  7647
	runpath_var=LD_RUN_PATH
melunko@47
  7648
	hardcode_runpath_var=yes
melunko@47
  7649
	ld_shlibs=yes
melunko@47
  7650
      fi
melunko@47
  7651
      ;;
melunko@47
  7652
melunko@47
  7653
    sysv4.2uw2*)
melunko@47
  7654
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7655
      hardcode_direct=yes
melunko@47
  7656
      hardcode_minus_L=no
melunko@47
  7657
      hardcode_shlibpath_var=no
melunko@47
  7658
      hardcode_runpath_var=yes
melunko@47
  7659
      runpath_var=LD_RUN_PATH
melunko@47
  7660
      ;;
melunko@47
  7661
melunko@47
  7662
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
melunko@47
  7663
      no_undefined_flag='${wl}-z ${wl}text'
melunko@47
  7664
      if test "$GCC" = yes; then
melunko@47
  7665
	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
  7666
      else
melunko@47
  7667
	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
  7668
      fi
melunko@47
  7669
      runpath_var='LD_RUN_PATH'
melunko@47
  7670
      hardcode_shlibpath_var=no
melunko@47
  7671
      ;;
melunko@47
  7672
melunko@47
  7673
    sysv5*)
melunko@47
  7674
      no_undefined_flag=' -z text'
melunko@47
  7675
      # $CC -shared without GNU ld will not create a library from C++
melunko@47
  7676
      # object files and a static libstdc++, better avoid it by now
melunko@47
  7677
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7678
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
melunko@47
  7679
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
melunko@47
  7680
      hardcode_libdir_flag_spec=
melunko@47
  7681
      hardcode_shlibpath_var=no
melunko@47
  7682
      runpath_var='LD_RUN_PATH'
melunko@47
  7683
      ;;
melunko@47
  7684
melunko@47
  7685
    uts4*)
melunko@47
  7686
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
  7687
      hardcode_libdir_flag_spec='-L$libdir'
melunko@47
  7688
      hardcode_shlibpath_var=no
melunko@47
  7689
      ;;
melunko@47
  7690
melunko@47
  7691
    *)
melunko@47
  7692
      ld_shlibs=no
melunko@47
  7693
      ;;
melunko@47
  7694
    esac
melunko@47
  7695
  fi
melunko@47
  7696
melunko@47
  7697
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
melunko@47
  7698
echo "${ECHO_T}$ld_shlibs" >&6
melunko@47
  7699
test "$ld_shlibs" = no && can_build_shared=no
melunko@47
  7700
melunko@47
  7701
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
melunko@47
  7702
if test "$GCC" = yes; then
melunko@47
  7703
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
melunko@47
  7704
fi
melunko@47
  7705
melunko@47
  7706
#
melunko@47
  7707
# Do we need to explicitly link libc?
melunko@47
  7708
#
melunko@47
  7709
case "x$archive_cmds_need_lc" in
melunko@47
  7710
x|xyes)
melunko@47
  7711
  # Assume -lc should be added
melunko@47
  7712
  archive_cmds_need_lc=yes
melunko@47
  7713
melunko@47
  7714
  if test "$enable_shared" = yes && test "$GCC" = yes; then
melunko@47
  7715
    case $archive_cmds in
melunko@47
  7716
    *'~'*)
melunko@47
  7717
      # FIXME: we may have to deal with multi-command sequences.
melunko@47
  7718
      ;;
melunko@47
  7719
    '$CC '*)
melunko@47
  7720
      # Test whether the compiler implicitly links with -lc since on some
melunko@47
  7721
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
melunko@47
  7722
      # to ld, don't add -lc before -lgcc.
melunko@47
  7723
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
melunko@47
  7724
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
melunko@47
  7725
      $rm conftest*
melunko@47
  7726
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
melunko@47
  7727
melunko@47
  7728
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
  7729
  (eval $ac_compile) 2>&5
melunko@47
  7730
  ac_status=$?
melunko@47
  7731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  7732
  (exit $ac_status); } 2>conftest.err; then
melunko@47
  7733
        soname=conftest
melunko@47
  7734
        lib=conftest
melunko@47
  7735
        libobjs=conftest.$ac_objext
melunko@47
  7736
        deplibs=
melunko@47
  7737
        wl=$lt_prog_compiler_wl
melunko@47
  7738
        compiler_flags=-v
melunko@47
  7739
        linker_flags=-v
melunko@47
  7740
        verstring=
melunko@47
  7741
        output_objdir=.
melunko@47
  7742
        libname=conftest
melunko@47
  7743
        lt_save_allow_undefined_flag=$allow_undefined_flag
melunko@47
  7744
        allow_undefined_flag=
melunko@47
  7745
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
melunko@47
  7746
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
melunko@47
  7747
  ac_status=$?
melunko@47
  7748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  7749
  (exit $ac_status); }
melunko@47
  7750
        then
melunko@47
  7751
	  archive_cmds_need_lc=no
melunko@47
  7752
        else
melunko@47
  7753
	  archive_cmds_need_lc=yes
melunko@47
  7754
        fi
melunko@47
  7755
        allow_undefined_flag=$lt_save_allow_undefined_flag
melunko@47
  7756
      else
melunko@47
  7757
        cat conftest.err 1>&5
melunko@47
  7758
      fi
melunko@47
  7759
      $rm conftest*
melunko@47
  7760
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
melunko@47
  7761
echo "${ECHO_T}$archive_cmds_need_lc" >&6
melunko@47
  7762
      ;;
melunko@47
  7763
    esac
melunko@47
  7764
  fi
melunko@47
  7765
  ;;
melunko@47
  7766
esac
melunko@47
  7767
melunko@47
  7768
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
melunko@47
  7769
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
melunko@47
  7770
library_names_spec=
melunko@47
  7771
libname_spec='lib$name'
melunko@47
  7772
soname_spec=
melunko@47
  7773
shrext_cmds=".so"
melunko@47
  7774
postinstall_cmds=
melunko@47
  7775
postuninstall_cmds=
melunko@47
  7776
finish_cmds=
melunko@47
  7777
finish_eval=
melunko@47
  7778
shlibpath_var=
melunko@47
  7779
shlibpath_overrides_runpath=unknown
melunko@47
  7780
version_type=none
melunko@47
  7781
dynamic_linker="$host_os ld.so"
melunko@47
  7782
sys_lib_dlsearch_path_spec="/lib /usr/lib"
melunko@47
  7783
if test "$GCC" = yes; then
melunko@47
  7784
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
melunko@47
  7785
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
melunko@47
  7786
    # if the path contains ";" then we assume it to be the separator
melunko@47
  7787
    # otherwise default to the standard path separator (i.e. ":") - it is
melunko@47
  7788
    # assumed that no part of a normal pathname contains ";" but that should
melunko@47
  7789
    # okay in the real world where ";" in dirpaths is itself problematic.
melunko@47
  7790
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
melunko@47
  7791
  else
melunko@47
  7792
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
melunko@47
  7793
  fi
melunko@47
  7794
else
melunko@47
  7795
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
melunko@47
  7796
fi
melunko@47
  7797
need_lib_prefix=unknown
melunko@47
  7798
hardcode_into_libs=no
melunko@47
  7799
melunko@47
  7800
# when you set need_version to no, make sure it does not cause -set_version
melunko@47
  7801
# flags to be left without arguments
melunko@47
  7802
need_version=unknown
melunko@47
  7803
melunko@47
  7804
case $host_os in
melunko@47
  7805
aix3*)
melunko@47
  7806
  version_type=linux
melunko@47
  7807
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
melunko@47
  7808
  shlibpath_var=LIBPATH
melunko@47
  7809
melunko@47
  7810
  # AIX 3 has no versioning support, so we append a major version to the name.
melunko@47
  7811
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  7812
  ;;
melunko@47
  7813
melunko@47
  7814
aix4* | aix5*)
melunko@47
  7815
  version_type=linux
melunko@47
  7816
  need_lib_prefix=no
melunko@47
  7817
  need_version=no
melunko@47
  7818
  hardcode_into_libs=yes
melunko@47
  7819
  if test "$host_cpu" = ia64; then
melunko@47
  7820
    # AIX 5 supports IA64
melunko@47
  7821
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
melunko@47
  7822
    shlibpath_var=LD_LIBRARY_PATH
melunko@47
  7823
  else
melunko@47
  7824
    # With GCC up to 2.95.x, collect2 would create an import file
melunko@47
  7825
    # for dependence libraries.  The import file would start with
melunko@47
  7826
    # the line `#! .'.  This would cause the generated library to
melunko@47
  7827
    # depend on `.', always an invalid library.  This was fixed in
melunko@47
  7828
    # development snapshots of GCC prior to 3.0.
melunko@47
  7829
    case $host_os in
melunko@47
  7830
      aix4 | aix4.[01] | aix4.[01].*)
melunko@47
  7831
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
melunko@47
  7832
	   echo ' yes '
melunko@47
  7833
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
melunko@47
  7834
	:
melunko@47
  7835
      else
melunko@47
  7836
	can_build_shared=no
melunko@47
  7837
      fi
melunko@47
  7838
      ;;
melunko@47
  7839
    esac
melunko@47
  7840
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
melunko@47
  7841
    # soname into executable. Probably we can add versioning support to
melunko@47
  7842
    # collect2, so additional links can be useful in future.
melunko@47
  7843
    if test "$aix_use_runtimelinking" = yes; then
melunko@47
  7844
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
melunko@47
  7845
      # instead of lib<name>.a to let people know that these are not
melunko@47
  7846
      # typical AIX shared libraries.
melunko@47
  7847
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
  7848
    else
melunko@47
  7849
      # We preserve .a as extension for shared libraries through AIX4.2
melunko@47
  7850
      # and later when we are not doing run time linking.
melunko@47
  7851
      library_names_spec='${libname}${release}.a $libname.a'
melunko@47
  7852
      soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  7853
    fi
melunko@47
  7854
    shlibpath_var=LIBPATH
melunko@47
  7855
  fi
melunko@47
  7856
  ;;
melunko@47
  7857
melunko@47
  7858
amigaos*)
melunko@47
  7859
  library_names_spec='$libname.ixlibrary $libname.a'
melunko@47
  7860
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
melunko@47
  7861
  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'
melunko@47
  7862
  ;;
melunko@47
  7863
melunko@47
  7864
beos*)
melunko@47
  7865
  library_names_spec='${libname}${shared_ext}'
melunko@47
  7866
  dynamic_linker="$host_os ld.so"
melunko@47
  7867
  shlibpath_var=LIBRARY_PATH
melunko@47
  7868
  ;;
melunko@47
  7869
melunko@47
  7870
bsdi[45]*)
melunko@47
  7871
  version_type=linux
melunko@47
  7872
  need_version=no
melunko@47
  7873
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
  7874
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  7875
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
melunko@47
  7876
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  7877
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
melunko@47
  7878
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
melunko@47
  7879
  # the default ld.so.conf also contains /usr/contrib/lib and
melunko@47
  7880
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
melunko@47
  7881
  # libtool to hard-code these into programs
melunko@47
  7882
  ;;
melunko@47
  7883
melunko@47
  7884
cygwin* | mingw* | pw32*)
melunko@47
  7885
  version_type=windows
melunko@47
  7886
  shrext_cmds=".dll"
melunko@47
  7887
  need_version=no
melunko@47
  7888
  need_lib_prefix=no
melunko@47
  7889
melunko@47
  7890
  case $GCC,$host_os in
melunko@47
  7891
  yes,cygwin* | yes,mingw* | yes,pw32*)
melunko@47
  7892
    library_names_spec='$libname.dll.a'
melunko@47
  7893
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
melunko@47
  7894
    postinstall_cmds='base_file=`basename \${file}`~
melunko@47
  7895
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
melunko@47
  7896
      dldir=$destdir/`dirname \$dlpath`~
melunko@47
  7897
      test -d \$dldir || mkdir -p \$dldir~
melunko@47
  7898
      $install_prog $dir/$dlname \$dldir/$dlname~
melunko@47
  7899
      chmod a+x \$dldir/$dlname'
melunko@47
  7900
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
melunko@47
  7901
      dlpath=$dir/\$dldll~
melunko@47
  7902
       $rm \$dlpath'
melunko@47
  7903
    shlibpath_overrides_runpath=yes
melunko@47
  7904
melunko@47
  7905
    case $host_os in
melunko@47
  7906
    cygwin*)
melunko@47
  7907
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
melunko@47
  7908
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
melunko@47
  7909
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
melunko@47
  7910
      ;;
melunko@47
  7911
    mingw*)
melunko@47
  7912
      # MinGW DLLs use traditional 'lib' prefix
melunko@47
  7913
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
melunko@47
  7914
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
melunko@47
  7915
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
melunko@47
  7916
        # It is most probably a Windows format PATH printed by
melunko@47
  7917
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
melunko@47
  7918
        # path with ; separators, and with drive letters. We can handle the
melunko@47
  7919
        # drive letters (cygwin fileutils understands them), so leave them,
melunko@47
  7920
        # especially as we might pass files found there to a mingw objdump,
melunko@47
  7921
        # which wouldn't understand a cygwinified path. Ahh.
melunko@47
  7922
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
melunko@47
  7923
      else
melunko@47
  7924
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
melunko@47
  7925
      fi
melunko@47
  7926
      ;;
melunko@47
  7927
    pw32*)
melunko@47
  7928
      # pw32 DLLs use 'pw' prefix rather than 'lib'
melunko@47
  7929
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
melunko@47
  7930
      ;;
melunko@47
  7931
    esac
melunko@47
  7932
    ;;
melunko@47
  7933
melunko@47
  7934
  *)
melunko@47
  7935
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
melunko@47
  7936
    ;;
melunko@47
  7937
  esac
melunko@47
  7938
  dynamic_linker='Win32 ld.exe'
melunko@47
  7939
  # FIXME: first we should search . and the directory the executable is in
melunko@47
  7940
  shlibpath_var=PATH
melunko@47
  7941
  ;;
melunko@47
  7942
melunko@47
  7943
darwin* | rhapsody*)
melunko@47
  7944
  dynamic_linker="$host_os dyld"
melunko@47
  7945
  version_type=darwin
melunko@47
  7946
  need_lib_prefix=no
melunko@47
  7947
  need_version=no
melunko@47
  7948
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
melunko@47
  7949
  soname_spec='${libname}${release}${major}$shared_ext'
melunko@47
  7950
  shlibpath_overrides_runpath=yes
melunko@47
  7951
  shlibpath_var=DYLD_LIBRARY_PATH
melunko@47
  7952
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
melunko@47
  7953
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
melunko@47
  7954
  if test "$GCC" = yes; then
melunko@47
  7955
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
melunko@47
  7956
  else
melunko@47
  7957
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
melunko@47
  7958
  fi
melunko@47
  7959
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
melunko@47
  7960
  ;;
melunko@47
  7961
melunko@47
  7962
dgux*)
melunko@47
  7963
  version_type=linux
melunko@47
  7964
  need_lib_prefix=no
melunko@47
  7965
  need_version=no
melunko@47
  7966
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
melunko@47
  7967
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  7968
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  7969
  ;;
melunko@47
  7970
melunko@47
  7971
freebsd1*)
melunko@47
  7972
  dynamic_linker=no
melunko@47
  7973
  ;;
melunko@47
  7974
melunko@47
  7975
kfreebsd*-gnu)
melunko@47
  7976
  version_type=linux
melunko@47
  7977
  need_lib_prefix=no
melunko@47
  7978
  need_version=no
melunko@47
  7979
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
melunko@47
  7980
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  7981
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  7982
  shlibpath_overrides_runpath=no
melunko@47
  7983
  hardcode_into_libs=yes
melunko@47
  7984
  dynamic_linker='GNU ld.so'
melunko@47
  7985
  ;;
melunko@47
  7986
melunko@47
  7987
freebsd* | dragonfly*)
melunko@47
  7988
  # DragonFly does not have aout.  When/if they implement a new
melunko@47
  7989
  # versioning mechanism, adjust this.
melunko@47
  7990
  if test -x /usr/bin/objformat; then
melunko@47
  7991
    objformat=`/usr/bin/objformat`
melunko@47
  7992
  else
melunko@47
  7993
    case $host_os in
melunko@47
  7994
    freebsd[123]*) objformat=aout ;;
melunko@47
  7995
    *) objformat=elf ;;
melunko@47
  7996
    esac
melunko@47
  7997
  fi
melunko@47
  7998
  version_type=freebsd-$objformat
melunko@47
  7999
  case $version_type in
melunko@47
  8000
    freebsd-elf*)
melunko@47
  8001
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
melunko@47
  8002
      need_version=no
melunko@47
  8003
      need_lib_prefix=no
melunko@47
  8004
      ;;
melunko@47
  8005
    freebsd-*)
melunko@47
  8006
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
melunko@47
  8007
      need_version=yes
melunko@47
  8008
      ;;
melunko@47
  8009
  esac
melunko@47
  8010
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8011
  case $host_os in
melunko@47
  8012
  freebsd2*)
melunko@47
  8013
    shlibpath_overrides_runpath=yes
melunko@47
  8014
    ;;
melunko@47
  8015
  freebsd3.[01]* | freebsdelf3.[01]*)
melunko@47
  8016
    shlibpath_overrides_runpath=yes
melunko@47
  8017
    hardcode_into_libs=yes
melunko@47
  8018
    ;;
melunko@47
  8019
  *) # from 3.2 on
melunko@47
  8020
    shlibpath_overrides_runpath=no
melunko@47
  8021
    hardcode_into_libs=yes
melunko@47
  8022
    ;;
melunko@47
  8023
  esac
melunko@47
  8024
  ;;
melunko@47
  8025
melunko@47
  8026
gnu*)
melunko@47
  8027
  version_type=linux
melunko@47
  8028
  need_lib_prefix=no
melunko@47
  8029
  need_version=no
melunko@47
  8030
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
melunko@47
  8031
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  8032
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8033
  hardcode_into_libs=yes
melunko@47
  8034
  ;;
melunko@47
  8035
melunko@47
  8036
hpux9* | hpux10* | hpux11*)
melunko@47
  8037
  # Give a soname corresponding to the major version so that dld.sl refuses to
melunko@47
  8038
  # link against other versions.
melunko@47
  8039
  version_type=sunos
melunko@47
  8040
  need_lib_prefix=no
melunko@47
  8041
  need_version=no
melunko@47
  8042
  case $host_cpu in
melunko@47
  8043
  ia64*)
melunko@47
  8044
    shrext_cmds='.so'
melunko@47
  8045
    hardcode_into_libs=yes
melunko@47
  8046
    dynamic_linker="$host_os dld.so"
melunko@47
  8047
    shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8048
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
melunko@47
  8049
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
  8050
    soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  8051
    if test "X$HPUX_IA64_MODE" = X32; then
melunko@47
  8052
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
melunko@47
  8053
    else
melunko@47
  8054
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
melunko@47
  8055
    fi
melunko@47
  8056
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
melunko@47
  8057
    ;;
melunko@47
  8058
   hppa*64*)
melunko@47
  8059
     shrext_cmds='.sl'
melunko@47
  8060
     hardcode_into_libs=yes
melunko@47
  8061
     dynamic_linker="$host_os dld.sl"
melunko@47
  8062
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
melunko@47
  8063
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
melunko@47
  8064
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
  8065
     soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  8066
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
melunko@47
  8067
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
melunko@47
  8068
     ;;
melunko@47
  8069
   *)
melunko@47
  8070
    shrext_cmds='.sl'
melunko@47
  8071
    dynamic_linker="$host_os dld.sl"
melunko@47
  8072
    shlibpath_var=SHLIB_PATH
melunko@47
  8073
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
melunko@47
  8074
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
  8075
    soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  8076
    ;;
melunko@47
  8077
  esac
melunko@47
  8078
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
melunko@47
  8079
  postinstall_cmds='chmod 555 $lib'
melunko@47
  8080
  ;;
melunko@47
  8081
melunko@47
  8082
irix5* | irix6* | nonstopux*)
melunko@47
  8083
  case $host_os in
melunko@47
  8084
    nonstopux*) version_type=nonstopux ;;
melunko@47
  8085
    *)
melunko@47
  8086
	if test "$lt_cv_prog_gnu_ld" = yes; then
melunko@47
  8087
		version_type=linux
melunko@47
  8088
	else
melunko@47
  8089
		version_type=irix
melunko@47
  8090
	fi ;;
melunko@47
  8091
  esac
melunko@47
  8092
  need_lib_prefix=no
melunko@47
  8093
  need_version=no
melunko@47
  8094
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  8095
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
melunko@47
  8096
  case $host_os in
melunko@47
  8097
  irix5* | nonstopux*)
melunko@47
  8098
    libsuff= shlibsuff=
melunko@47
  8099
    ;;
melunko@47
  8100
  *)
melunko@47
  8101
    case $LD in # libtool.m4 will add one of these switches to LD
melunko@47
  8102
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
melunko@47
  8103
      libsuff= shlibsuff= libmagic=32-bit;;
melunko@47
  8104
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
melunko@47
  8105
      libsuff=32 shlibsuff=N32 libmagic=N32;;
melunko@47
  8106
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
melunko@47
  8107
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
melunko@47
  8108
    *) libsuff= shlibsuff= libmagic=never-match;;
melunko@47
  8109
    esac
melunko@47
  8110
    ;;
melunko@47
  8111
  esac
melunko@47
  8112
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
melunko@47
  8113
  shlibpath_overrides_runpath=no
melunko@47
  8114
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
melunko@47
  8115
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
melunko@47
  8116
  hardcode_into_libs=yes
melunko@47
  8117
  ;;
melunko@47
  8118
melunko@47
  8119
# No shared lib support for Linux oldld, aout, or coff.
melunko@47
  8120
linux*oldld* | linux*aout* | linux*coff*)
melunko@47
  8121
  dynamic_linker=no
melunko@47
  8122
  ;;
melunko@47
  8123
melunko@47
  8124
# This must be Linux ELF.
melunko@47
  8125
linux*)
melunko@47
  8126
  version_type=linux
melunko@47
  8127
  need_lib_prefix=no
melunko@47
  8128
  need_version=no
melunko@47
  8129
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
  8130
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  8131
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
melunko@47
  8132
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8133
  shlibpath_overrides_runpath=no
melunko@47
  8134
  # This implies no fast_install, which is unacceptable.
melunko@47
  8135
  # Some rework will be needed to allow for fast_install
melunko@47
  8136
  # before this can be enabled.
melunko@47
  8137
  hardcode_into_libs=yes
melunko@47
  8138
melunko@47
  8139
  # Append ld.so.conf contents to the search path
melunko@47
  8140
  if test -f /etc/ld.so.conf; then
melunko@47
  8141
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
melunko@47
  8142
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
melunko@47
  8143
  fi
melunko@47
  8144
melunko@47
  8145
  # We used to test for /lib/ld.so.1 and disable shared libraries on
melunko@47
  8146
  # powerpc, because MkLinux only supported shared libraries with the
melunko@47
  8147
  # GNU dynamic linker.  Since this was broken with cross compilers,
melunko@47
  8148
  # most powerpc-linux boxes support dynamic linking these days and
melunko@47
  8149
  # people can always --disable-shared, the test was removed, and we
melunko@47
  8150
  # assume the GNU/Linux dynamic linker is in use.
melunko@47
  8151
  dynamic_linker='GNU/Linux ld.so'
melunko@47
  8152
  ;;
melunko@47
  8153
melunko@47
  8154
knetbsd*-gnu)
melunko@47
  8155
  version_type=linux
melunko@47
  8156
  need_lib_prefix=no
melunko@47
  8157
  need_version=no
melunko@47
  8158
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
melunko@47
  8159
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  8160
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8161
  shlibpath_overrides_runpath=no
melunko@47
  8162
  hardcode_into_libs=yes
melunko@47
  8163
  dynamic_linker='GNU ld.so'
melunko@47
  8164
  ;;
melunko@47
  8165
melunko@47
  8166
netbsd*)
melunko@47
  8167
  version_type=sunos
melunko@47
  8168
  need_lib_prefix=no
melunko@47
  8169
  need_version=no
melunko@47
  8170
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
melunko@47
  8171
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
melunko@47
  8172
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
melunko@47
  8173
    dynamic_linker='NetBSD (a.out) ld.so'
melunko@47
  8174
  else
melunko@47
  8175
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
melunko@47
  8176
    soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  8177
    dynamic_linker='NetBSD ld.elf_so'
melunko@47
  8178
  fi
melunko@47
  8179
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8180
  shlibpath_overrides_runpath=yes
melunko@47
  8181
  hardcode_into_libs=yes
melunko@47
  8182
  ;;
melunko@47
  8183
melunko@47
  8184
newsos6)
melunko@47
  8185
  version_type=linux
melunko@47
  8186
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
  8187
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8188
  shlibpath_overrides_runpath=yes
melunko@47
  8189
  ;;
melunko@47
  8190
melunko@47
  8191
nto-qnx*)
melunko@47
  8192
  version_type=linux
melunko@47
  8193
  need_lib_prefix=no
melunko@47
  8194
  need_version=no
melunko@47
  8195
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
  8196
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  8197
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8198
  shlibpath_overrides_runpath=yes
melunko@47
  8199
  ;;
melunko@47
  8200
melunko@47
  8201
openbsd*)
melunko@47
  8202
  version_type=sunos
melunko@47
  8203
  need_lib_prefix=no
melunko@47
  8204
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
melunko@47
  8205
  case $host_os in
melunko@47
  8206
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
melunko@47
  8207
    *)                         need_version=no  ;;
melunko@47
  8208
  esac
melunko@47
  8209
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
melunko@47
  8210
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
melunko@47
  8211
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8212
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
melunko@47
  8213
    case $host_os in
melunko@47
  8214
      openbsd2.[89] | openbsd2.[89].*)
melunko@47
  8215
	shlibpath_overrides_runpath=no
melunko@47
  8216
	;;
melunko@47
  8217
      *)
melunko@47
  8218
	shlibpath_overrides_runpath=yes
melunko@47
  8219
	;;
melunko@47
  8220
      esac
melunko@47
  8221
  else
melunko@47
  8222
    shlibpath_overrides_runpath=yes
melunko@47
  8223
  fi
melunko@47
  8224
  ;;
melunko@47
  8225
melunko@47
  8226
os2*)
melunko@47
  8227
  libname_spec='$name'
melunko@47
  8228
  shrext_cmds=".dll"
melunko@47
  8229
  need_lib_prefix=no
melunko@47
  8230
  library_names_spec='$libname${shared_ext} $libname.a'
melunko@47
  8231
  dynamic_linker='OS/2 ld.exe'
melunko@47
  8232
  shlibpath_var=LIBPATH
melunko@47
  8233
  ;;
melunko@47
  8234
melunko@47
  8235
osf3* | osf4* | osf5*)
melunko@47
  8236
  version_type=osf
melunko@47
  8237
  need_lib_prefix=no
melunko@47
  8238
  need_version=no
melunko@47
  8239
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  8240
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
  8241
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8242
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
melunko@47
  8243
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
melunko@47
  8244
  ;;
melunko@47
  8245
melunko@47
  8246
sco3.2v5*)
melunko@47
  8247
  version_type=osf
melunko@47
  8248
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  8249
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
  8250
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8251
  ;;
melunko@47
  8252
melunko@47
  8253
solaris*)
melunko@47
  8254
  version_type=linux
melunko@47
  8255
  need_lib_prefix=no
melunko@47
  8256
  need_version=no
melunko@47
  8257
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
  8258
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  8259
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8260
  shlibpath_overrides_runpath=yes
melunko@47
  8261
  hardcode_into_libs=yes
melunko@47
  8262
  # ldd complains unless libraries are executable
melunko@47
  8263
  postinstall_cmds='chmod +x $lib'
melunko@47
  8264
  ;;
melunko@47
  8265
melunko@47
  8266
sunos4*)
melunko@47
  8267
  version_type=sunos
melunko@47
  8268
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
melunko@47
  8269
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
melunko@47
  8270
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8271
  shlibpath_overrides_runpath=yes
melunko@47
  8272
  if test "$with_gnu_ld" = yes; then
melunko@47
  8273
    need_lib_prefix=no
melunko@47
  8274
  fi
melunko@47
  8275
  need_version=yes
melunko@47
  8276
  ;;
melunko@47
  8277
melunko@47
  8278
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
melunko@47
  8279
  version_type=linux
melunko@47
  8280
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
  8281
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  8282
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8283
  case $host_vendor in
melunko@47
  8284
    sni)
melunko@47
  8285
      shlibpath_overrides_runpath=no
melunko@47
  8286
      need_lib_prefix=no
melunko@47
  8287
      export_dynamic_flag_spec='${wl}-Blargedynsym'
melunko@47
  8288
      runpath_var=LD_RUN_PATH
melunko@47
  8289
      ;;
melunko@47
  8290
    siemens)
melunko@47
  8291
      need_lib_prefix=no
melunko@47
  8292
      ;;
melunko@47
  8293
    motorola)
melunko@47
  8294
      need_lib_prefix=no
melunko@47
  8295
      need_version=no
melunko@47
  8296
      shlibpath_overrides_runpath=no
melunko@47
  8297
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
melunko@47
  8298
      ;;
melunko@47
  8299
  esac
melunko@47
  8300
  ;;
melunko@47
  8301
melunko@47
  8302
sysv4*MP*)
melunko@47
  8303
  if test -d /usr/nec ;then
melunko@47
  8304
    version_type=linux
melunko@47
  8305
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
melunko@47
  8306
    soname_spec='$libname${shared_ext}.$major'
melunko@47
  8307
    shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8308
  fi
melunko@47
  8309
  ;;
melunko@47
  8310
melunko@47
  8311
uts4*)
melunko@47
  8312
  version_type=linux
melunko@47
  8313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
  8314
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
  8315
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
  8316
  ;;
melunko@47
  8317
melunko@47
  8318
*)
melunko@47
  8319
  dynamic_linker=no
melunko@47
  8320
  ;;
melunko@47
  8321
esac
melunko@47
  8322
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
melunko@47
  8323
echo "${ECHO_T}$dynamic_linker" >&6
melunko@47
  8324
test "$dynamic_linker" = no && can_build_shared=no
melunko@47
  8325
melunko@47
  8326
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
melunko@47
  8327
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
melunko@47
  8328
hardcode_action=
melunko@47
  8329
if test -n "$hardcode_libdir_flag_spec" || \
melunko@47
  8330
   test -n "$runpath_var" || \
melunko@47
  8331
   test "X$hardcode_automatic" = "Xyes" ; then
melunko@47
  8332
melunko@47
  8333
  # We can hardcode non-existant directories.
melunko@47
  8334
  if test "$hardcode_direct" != no &&
melunko@47
  8335
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
melunko@47
  8336
     # have to relink, otherwise we might link with an installed library
melunko@47
  8337
     # when we should be linking with a yet-to-be-installed one
melunko@47
  8338
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
melunko@47
  8339
     test "$hardcode_minus_L" != no; then
melunko@47
  8340
    # Linking always hardcodes the temporary library directory.
melunko@47
  8341
    hardcode_action=relink
melunko@47
  8342
  else
melunko@47
  8343
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
melunko@47
  8344
    hardcode_action=immediate
melunko@47
  8345
  fi
melunko@47
  8346
else
melunko@47
  8347
  # We cannot hardcode anything, or else we can only hardcode existing
melunko@47
  8348
  # directories.
melunko@47
  8349
  hardcode_action=unsupported
melunko@47
  8350
fi
melunko@47
  8351
echo "$as_me:$LINENO: result: $hardcode_action" >&5
melunko@47
  8352
echo "${ECHO_T}$hardcode_action" >&6
melunko@47
  8353
melunko@47
  8354
if test "$hardcode_action" = relink; then
melunko@47
  8355
  # Fast installation is not supported
melunko@47
  8356
  enable_fast_install=no
melunko@47
  8357
elif test "$shlibpath_overrides_runpath" = yes ||
melunko@47
  8358
     test "$enable_shared" = no; then
melunko@47
  8359
  # Fast installation is not necessary
melunko@47
  8360
  enable_fast_install=needless
melunko@47
  8361
fi
melunko@47
  8362
melunko@47
  8363
striplib=
melunko@47
  8364
old_striplib=
melunko@47
  8365
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
melunko@47
  8366
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
melunko@47
  8367
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
melunko@47
  8368
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
melunko@47
  8369
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
melunko@47
  8370
  echo "$as_me:$LINENO: result: yes" >&5
melunko@47
  8371
echo "${ECHO_T}yes" >&6
melunko@47
  8372
else
melunko@47
  8373
# FIXME - insert some real tests, host_os isn't really good enough
melunko@47
  8374
  case $host_os in
melunko@47
  8375
   darwin*)
melunko@47
  8376
       if test -n "$STRIP" ; then
melunko@47
  8377
         striplib="$STRIP -x"
melunko@47
  8378
         echo "$as_me:$LINENO: result: yes" >&5
melunko@47
  8379
echo "${ECHO_T}yes" >&6
melunko@47
  8380
       else
melunko@47
  8381
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  8382
echo "${ECHO_T}no" >&6
melunko@47
  8383
fi
melunko@47
  8384
       ;;
melunko@47
  8385
   *)
melunko@47
  8386
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  8387
echo "${ECHO_T}no" >&6
melunko@47
  8388
    ;;
melunko@47
  8389
  esac
melunko@47
  8390
fi
melunko@47
  8391
melunko@47
  8392
if test "x$enable_dlopen" != xyes; then
melunko@47
  8393
  enable_dlopen=unknown
melunko@47
  8394
  enable_dlopen_self=unknown
melunko@47
  8395
  enable_dlopen_self_static=unknown
melunko@47
  8396
else
melunko@47
  8397
  lt_cv_dlopen=no
melunko@47
  8398
  lt_cv_dlopen_libs=
melunko@47
  8399
melunko@47
  8400
  case $host_os in
melunko@47
  8401
  beos*)
melunko@47
  8402
    lt_cv_dlopen="load_add_on"
melunko@47
  8403
    lt_cv_dlopen_libs=
melunko@47
  8404
    lt_cv_dlopen_self=yes
melunko@47
  8405
    ;;
melunko@47
  8406
melunko@47
  8407
  mingw* | pw32*)
melunko@47
  8408
    lt_cv_dlopen="LoadLibrary"
melunko@47
  8409
    lt_cv_dlopen_libs=
melunko@47
  8410
   ;;
melunko@47
  8411
melunko@47
  8412
  cygwin*)
melunko@47
  8413
    lt_cv_dlopen="dlopen"
melunko@47
  8414
    lt_cv_dlopen_libs=
melunko@47
  8415
   ;;
melunko@47
  8416
melunko@47
  8417
  darwin*)
melunko@47
  8418
  # if libdl is installed we need to link against it
melunko@47
  8419
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
melunko@47
  8420
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
melunko@47
  8421
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
melunko@47
  8422
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  8423
else
melunko@47
  8424
  ac_check_lib_save_LIBS=$LIBS
melunko@47
  8425
LIBS="-ldl  $LIBS"
melunko@47
  8426
cat >conftest.$ac_ext <<_ACEOF
melunko@47
  8427
/* confdefs.h.  */
melunko@47
  8428
_ACEOF
melunko@47
  8429
cat confdefs.h >>conftest.$ac_ext
melunko@47
  8430
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  8431
/* end confdefs.h.  */
melunko@47
  8432
melunko@47
  8433
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
  8434
#ifdef __cplusplus
melunko@47
  8435
extern "C"
melunko@47
  8436
#endif
melunko@47
  8437
/* We use char because int might match the return type of a gcc2
melunko@47
  8438
   builtin and then its argument prototype would still apply.  */
melunko@47
  8439
char dlopen ();
melunko@47
  8440
int
melunko@47
  8441
main ()
melunko@47
  8442
{
melunko@47
  8443
dlopen ();
melunko@47
  8444
  ;
melunko@47
  8445
  return 0;
melunko@47
  8446
}
melunko@47
  8447
_ACEOF
melunko@47
  8448
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
  8449
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  8450
  (eval $ac_link) 2>conftest.er1
melunko@47
  8451
  ac_status=$?
melunko@47
  8452
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  8453
  rm -f conftest.er1
melunko@47
  8454
  cat conftest.err >&5
melunko@47
  8455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8456
  (exit $ac_status); } &&
melunko@47
  8457
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  8458
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  8459
  (eval $ac_try) 2>&5
melunko@47
  8460
  ac_status=$?
melunko@47
  8461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8462
  (exit $ac_status); }; } &&
melunko@47
  8463
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
  8464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  8465
  (eval $ac_try) 2>&5
melunko@47
  8466
  ac_status=$?
melunko@47
  8467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8468
  (exit $ac_status); }; }; then
melunko@47
  8469
  ac_cv_lib_dl_dlopen=yes
melunko@47
  8470
else
melunko@47
  8471
  echo "$as_me: failed program was:" >&5
melunko@47
  8472
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  8473
melunko@47
  8474
ac_cv_lib_dl_dlopen=no
melunko@47
  8475
fi
melunko@47
  8476
rm -f conftest.err conftest.$ac_objext \
melunko@47
  8477
      conftest$ac_exeext conftest.$ac_ext
melunko@47
  8478
LIBS=$ac_check_lib_save_LIBS
melunko@47
  8479
fi
melunko@47
  8480
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
melunko@47
  8481
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
melunko@47
  8482
if test $ac_cv_lib_dl_dlopen = yes; then
melunko@47
  8483
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
melunko@47
  8484
else
melunko@47
  8485
  
melunko@47
  8486
    lt_cv_dlopen="dyld"
melunko@47
  8487
    lt_cv_dlopen_libs=
melunko@47
  8488
    lt_cv_dlopen_self=yes
melunko@47
  8489
    
melunko@47
  8490
fi
melunko@47
  8491
melunko@47
  8492
   ;;
melunko@47
  8493
melunko@47
  8494
  *)
melunko@47
  8495
    echo "$as_me:$LINENO: checking for shl_load" >&5
melunko@47
  8496
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
melunko@47
  8497
if test "${ac_cv_func_shl_load+set}" = set; then
melunko@47
  8498
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  8499
else
melunko@47
  8500
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  8501
/* confdefs.h.  */
melunko@47
  8502
_ACEOF
melunko@47
  8503
cat confdefs.h >>conftest.$ac_ext
melunko@47
  8504
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  8505
/* end confdefs.h.  */
melunko@47
  8506
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
melunko@47
  8507
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
melunko@47
  8508
#define shl_load innocuous_shl_load
melunko@47
  8509
melunko@47
  8510
/* System header to define __stub macros and hopefully few prototypes,
melunko@47
  8511
    which can conflict with char shl_load (); below.
melunko@47
  8512
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
melunko@47
  8513
    <limits.h> exists even on freestanding compilers.  */
melunko@47
  8514
melunko@47
  8515
#ifdef __STDC__
melunko@47
  8516
# include <limits.h>
melunko@47
  8517
#else
melunko@47
  8518
# include <assert.h>
melunko@47
  8519
#endif
melunko@47
  8520
melunko@47
  8521
#undef shl_load
melunko@47
  8522
melunko@47
  8523
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
  8524
#ifdef __cplusplus
melunko@47
  8525
extern "C"
melunko@47
  8526
{
melunko@47
  8527
#endif
melunko@47
  8528
/* We use char because int might match the return type of a gcc2
melunko@47
  8529
   builtin and then its argument prototype would still apply.  */
melunko@47
  8530
char shl_load ();
melunko@47
  8531
/* The GNU C library defines this for functions which it implements
melunko@47
  8532
    to always fail with ENOSYS.  Some functions are actually named
melunko@47
  8533
    something starting with __ and the normal name is an alias.  */
melunko@47
  8534
#if defined (__stub_shl_load) || defined (__stub___shl_load)
melunko@47
  8535
choke me
melunko@47
  8536
#else
melunko@47
  8537
char (*f) () = shl_load;
melunko@47
  8538
#endif
melunko@47
  8539
#ifdef __cplusplus
melunko@47
  8540
}
melunko@47
  8541
#endif
melunko@47
  8542
melunko@47
  8543
int
melunko@47
  8544
main ()
melunko@47
  8545
{
melunko@47
  8546
return f != shl_load;
melunko@47
  8547
  ;
melunko@47
  8548
  return 0;
melunko@47
  8549
}
melunko@47
  8550
_ACEOF
melunko@47
  8551
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
  8552
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  8553
  (eval $ac_link) 2>conftest.er1
melunko@47
  8554
  ac_status=$?
melunko@47
  8555
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  8556
  rm -f conftest.er1
melunko@47
  8557
  cat conftest.err >&5
melunko@47
  8558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8559
  (exit $ac_status); } &&
melunko@47
  8560
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  8561
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  8562
  (eval $ac_try) 2>&5
melunko@47
  8563
  ac_status=$?
melunko@47
  8564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8565
  (exit $ac_status); }; } &&
melunko@47
  8566
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
  8567
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  8568
  (eval $ac_try) 2>&5
melunko@47
  8569
  ac_status=$?
melunko@47
  8570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8571
  (exit $ac_status); }; }; then
melunko@47
  8572
  ac_cv_func_shl_load=yes
melunko@47
  8573
else
melunko@47
  8574
  echo "$as_me: failed program was:" >&5
melunko@47
  8575
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  8576
melunko@47
  8577
ac_cv_func_shl_load=no
melunko@47
  8578
fi
melunko@47
  8579
rm -f conftest.err conftest.$ac_objext \
melunko@47
  8580
      conftest$ac_exeext conftest.$ac_ext
melunko@47
  8581
fi
melunko@47
  8582
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
melunko@47
  8583
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
melunko@47
  8584
if test $ac_cv_func_shl_load = yes; then
melunko@47
  8585
  lt_cv_dlopen="shl_load"
melunko@47
  8586
else
melunko@47
  8587
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
melunko@47
  8588
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
melunko@47
  8589
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
melunko@47
  8590
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  8591
else
melunko@47
  8592
  ac_check_lib_save_LIBS=$LIBS
melunko@47
  8593
LIBS="-ldld  $LIBS"
melunko@47
  8594
cat >conftest.$ac_ext <<_ACEOF
melunko@47
  8595
/* confdefs.h.  */
melunko@47
  8596
_ACEOF
melunko@47
  8597
cat confdefs.h >>conftest.$ac_ext
melunko@47
  8598
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  8599
/* end confdefs.h.  */
melunko@47
  8600
melunko@47
  8601
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
  8602
#ifdef __cplusplus
melunko@47
  8603
extern "C"
melunko@47
  8604
#endif
melunko@47
  8605
/* We use char because int might match the return type of a gcc2
melunko@47
  8606
   builtin and then its argument prototype would still apply.  */
melunko@47
  8607
char shl_load ();
melunko@47
  8608
int
melunko@47
  8609
main ()
melunko@47
  8610
{
melunko@47
  8611
shl_load ();
melunko@47
  8612
  ;
melunko@47
  8613
  return 0;
melunko@47
  8614
}
melunko@47
  8615
_ACEOF
melunko@47
  8616
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
  8617
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  8618
  (eval $ac_link) 2>conftest.er1
melunko@47
  8619
  ac_status=$?
melunko@47
  8620
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  8621
  rm -f conftest.er1
melunko@47
  8622
  cat conftest.err >&5
melunko@47
  8623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8624
  (exit $ac_status); } &&
melunko@47
  8625
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  8626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  8627
  (eval $ac_try) 2>&5
melunko@47
  8628
  ac_status=$?
melunko@47
  8629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8630
  (exit $ac_status); }; } &&
melunko@47
  8631
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
  8632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  8633
  (eval $ac_try) 2>&5
melunko@47
  8634
  ac_status=$?
melunko@47
  8635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8636
  (exit $ac_status); }; }; then
melunko@47
  8637
  ac_cv_lib_dld_shl_load=yes
melunko@47
  8638
else
melunko@47
  8639
  echo "$as_me: failed program was:" >&5
melunko@47
  8640
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  8641
melunko@47
  8642
ac_cv_lib_dld_shl_load=no
melunko@47
  8643
fi
melunko@47
  8644
rm -f conftest.err conftest.$ac_objext \
melunko@47
  8645
      conftest$ac_exeext conftest.$ac_ext
melunko@47
  8646
LIBS=$ac_check_lib_save_LIBS
melunko@47
  8647
fi
melunko@47
  8648
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
melunko@47
  8649
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
melunko@47
  8650
if test $ac_cv_lib_dld_shl_load = yes; then
melunko@47
  8651
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
melunko@47
  8652
else
melunko@47
  8653
  echo "$as_me:$LINENO: checking for dlopen" >&5
melunko@47
  8654
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
melunko@47
  8655
if test "${ac_cv_func_dlopen+set}" = set; then
melunko@47
  8656
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  8657
else
melunko@47
  8658
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
  8659
/* confdefs.h.  */
melunko@47
  8660
_ACEOF
melunko@47
  8661
cat confdefs.h >>conftest.$ac_ext
melunko@47
  8662
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  8663
/* end confdefs.h.  */
melunko@47
  8664
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
melunko@47
  8665
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
melunko@47
  8666
#define dlopen innocuous_dlopen
melunko@47
  8667
melunko@47
  8668
/* System header to define __stub macros and hopefully few prototypes,
melunko@47
  8669
    which can conflict with char dlopen (); below.
melunko@47
  8670
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
melunko@47
  8671
    <limits.h> exists even on freestanding compilers.  */
melunko@47
  8672
melunko@47
  8673
#ifdef __STDC__
melunko@47
  8674
# include <limits.h>
melunko@47
  8675
#else
melunko@47
  8676
# include <assert.h>
melunko@47
  8677
#endif
melunko@47
  8678
melunko@47
  8679
#undef dlopen
melunko@47
  8680
melunko@47
  8681
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
  8682
#ifdef __cplusplus
melunko@47
  8683
extern "C"
melunko@47
  8684
{
melunko@47
  8685
#endif
melunko@47
  8686
/* We use char because int might match the return type of a gcc2
melunko@47
  8687
   builtin and then its argument prototype would still apply.  */
melunko@47
  8688
char dlopen ();
melunko@47
  8689
/* The GNU C library defines this for functions which it implements
melunko@47
  8690
    to always fail with ENOSYS.  Some functions are actually named
melunko@47
  8691
    something starting with __ and the normal name is an alias.  */
melunko@47
  8692
#if defined (__stub_dlopen) || defined (__stub___dlopen)
melunko@47
  8693
choke me
melunko@47
  8694
#else
melunko@47
  8695
char (*f) () = dlopen;
melunko@47
  8696
#endif
melunko@47
  8697
#ifdef __cplusplus
melunko@47
  8698
}
melunko@47
  8699
#endif
melunko@47
  8700
melunko@47
  8701
int
melunko@47
  8702
main ()
melunko@47
  8703
{
melunko@47
  8704
return f != dlopen;
melunko@47
  8705
  ;
melunko@47
  8706
  return 0;
melunko@47
  8707
}
melunko@47
  8708
_ACEOF
melunko@47
  8709
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
  8710
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  8711
  (eval $ac_link) 2>conftest.er1
melunko@47
  8712
  ac_status=$?
melunko@47
  8713
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  8714
  rm -f conftest.er1
melunko@47
  8715
  cat conftest.err >&5
melunko@47
  8716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8717
  (exit $ac_status); } &&
melunko@47
  8718
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  8719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  8720
  (eval $ac_try) 2>&5
melunko@47
  8721
  ac_status=$?
melunko@47
  8722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8723
  (exit $ac_status); }; } &&
melunko@47
  8724
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
  8725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  8726
  (eval $ac_try) 2>&5
melunko@47
  8727
  ac_status=$?
melunko@47
  8728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8729
  (exit $ac_status); }; }; then
melunko@47
  8730
  ac_cv_func_dlopen=yes
melunko@47
  8731
else
melunko@47
  8732
  echo "$as_me: failed program was:" >&5
melunko@47
  8733
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  8734
melunko@47
  8735
ac_cv_func_dlopen=no
melunko@47
  8736
fi
melunko@47
  8737
rm -f conftest.err conftest.$ac_objext \
melunko@47
  8738
      conftest$ac_exeext conftest.$ac_ext
melunko@47
  8739
fi
melunko@47
  8740
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
melunko@47
  8741
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
melunko@47
  8742
if test $ac_cv_func_dlopen = yes; then
melunko@47
  8743
  lt_cv_dlopen="dlopen"
melunko@47
  8744
else
melunko@47
  8745
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
melunko@47
  8746
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
melunko@47
  8747
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
melunko@47
  8748
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  8749
else
melunko@47
  8750
  ac_check_lib_save_LIBS=$LIBS
melunko@47
  8751
LIBS="-ldl  $LIBS"
melunko@47
  8752
cat >conftest.$ac_ext <<_ACEOF
melunko@47
  8753
/* confdefs.h.  */
melunko@47
  8754
_ACEOF
melunko@47
  8755
cat confdefs.h >>conftest.$ac_ext
melunko@47
  8756
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  8757
/* end confdefs.h.  */
melunko@47
  8758
melunko@47
  8759
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
  8760
#ifdef __cplusplus
melunko@47
  8761
extern "C"
melunko@47
  8762
#endif
melunko@47
  8763
/* We use char because int might match the return type of a gcc2
melunko@47
  8764
   builtin and then its argument prototype would still apply.  */
melunko@47
  8765
char dlopen ();
melunko@47
  8766
int
melunko@47
  8767
main ()
melunko@47
  8768
{
melunko@47
  8769
dlopen ();
melunko@47
  8770
  ;
melunko@47
  8771
  return 0;
melunko@47
  8772
}
melunko@47
  8773
_ACEOF
melunko@47
  8774
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
  8775
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  8776
  (eval $ac_link) 2>conftest.er1
melunko@47
  8777
  ac_status=$?
melunko@47
  8778
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  8779
  rm -f conftest.er1
melunko@47
  8780
  cat conftest.err >&5
melunko@47
  8781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8782
  (exit $ac_status); } &&
melunko@47
  8783
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  8784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  8785
  (eval $ac_try) 2>&5
melunko@47
  8786
  ac_status=$?
melunko@47
  8787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8788
  (exit $ac_status); }; } &&
melunko@47
  8789
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
  8790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  8791
  (eval $ac_try) 2>&5
melunko@47
  8792
  ac_status=$?
melunko@47
  8793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8794
  (exit $ac_status); }; }; then
melunko@47
  8795
  ac_cv_lib_dl_dlopen=yes
melunko@47
  8796
else
melunko@47
  8797
  echo "$as_me: failed program was:" >&5
melunko@47
  8798
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  8799
melunko@47
  8800
ac_cv_lib_dl_dlopen=no
melunko@47
  8801
fi
melunko@47
  8802
rm -f conftest.err conftest.$ac_objext \
melunko@47
  8803
      conftest$ac_exeext conftest.$ac_ext
melunko@47
  8804
LIBS=$ac_check_lib_save_LIBS
melunko@47
  8805
fi
melunko@47
  8806
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
melunko@47
  8807
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
melunko@47
  8808
if test $ac_cv_lib_dl_dlopen = yes; then
melunko@47
  8809
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
melunko@47
  8810
else
melunko@47
  8811
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
melunko@47
  8812
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
melunko@47
  8813
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
melunko@47
  8814
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  8815
else
melunko@47
  8816
  ac_check_lib_save_LIBS=$LIBS
melunko@47
  8817
LIBS="-lsvld  $LIBS"
melunko@47
  8818
cat >conftest.$ac_ext <<_ACEOF
melunko@47
  8819
/* confdefs.h.  */
melunko@47
  8820
_ACEOF
melunko@47
  8821
cat confdefs.h >>conftest.$ac_ext
melunko@47
  8822
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  8823
/* end confdefs.h.  */
melunko@47
  8824
melunko@47
  8825
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
  8826
#ifdef __cplusplus
melunko@47
  8827
extern "C"
melunko@47
  8828
#endif
melunko@47
  8829
/* We use char because int might match the return type of a gcc2
melunko@47
  8830
   builtin and then its argument prototype would still apply.  */
melunko@47
  8831
char dlopen ();
melunko@47
  8832
int
melunko@47
  8833
main ()
melunko@47
  8834
{
melunko@47
  8835
dlopen ();
melunko@47
  8836
  ;
melunko@47
  8837
  return 0;
melunko@47
  8838
}
melunko@47
  8839
_ACEOF
melunko@47
  8840
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
  8841
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  8842
  (eval $ac_link) 2>conftest.er1
melunko@47
  8843
  ac_status=$?
melunko@47
  8844
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  8845
  rm -f conftest.er1
melunko@47
  8846
  cat conftest.err >&5
melunko@47
  8847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8848
  (exit $ac_status); } &&
melunko@47
  8849
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  8850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  8851
  (eval $ac_try) 2>&5
melunko@47
  8852
  ac_status=$?
melunko@47
  8853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8854
  (exit $ac_status); }; } &&
melunko@47
  8855
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
  8856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  8857
  (eval $ac_try) 2>&5
melunko@47
  8858
  ac_status=$?
melunko@47
  8859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8860
  (exit $ac_status); }; }; then
melunko@47
  8861
  ac_cv_lib_svld_dlopen=yes
melunko@47
  8862
else
melunko@47
  8863
  echo "$as_me: failed program was:" >&5
melunko@47
  8864
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  8865
melunko@47
  8866
ac_cv_lib_svld_dlopen=no
melunko@47
  8867
fi
melunko@47
  8868
rm -f conftest.err conftest.$ac_objext \
melunko@47
  8869
      conftest$ac_exeext conftest.$ac_ext
melunko@47
  8870
LIBS=$ac_check_lib_save_LIBS
melunko@47
  8871
fi
melunko@47
  8872
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
melunko@47
  8873
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
melunko@47
  8874
if test $ac_cv_lib_svld_dlopen = yes; then
melunko@47
  8875
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
melunko@47
  8876
else
melunko@47
  8877
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
melunko@47
  8878
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
melunko@47
  8879
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
melunko@47
  8880
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  8881
else
melunko@47
  8882
  ac_check_lib_save_LIBS=$LIBS
melunko@47
  8883
LIBS="-ldld  $LIBS"
melunko@47
  8884
cat >conftest.$ac_ext <<_ACEOF
melunko@47
  8885
/* confdefs.h.  */
melunko@47
  8886
_ACEOF
melunko@47
  8887
cat confdefs.h >>conftest.$ac_ext
melunko@47
  8888
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
  8889
/* end confdefs.h.  */
melunko@47
  8890
melunko@47
  8891
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
  8892
#ifdef __cplusplus
melunko@47
  8893
extern "C"
melunko@47
  8894
#endif
melunko@47
  8895
/* We use char because int might match the return type of a gcc2
melunko@47
  8896
   builtin and then its argument prototype would still apply.  */
melunko@47
  8897
char dld_link ();
melunko@47
  8898
int
melunko@47
  8899
main ()
melunko@47
  8900
{
melunko@47
  8901
dld_link ();
melunko@47
  8902
  ;
melunko@47
  8903
  return 0;
melunko@47
  8904
}
melunko@47
  8905
_ACEOF
melunko@47
  8906
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
  8907
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  8908
  (eval $ac_link) 2>conftest.er1
melunko@47
  8909
  ac_status=$?
melunko@47
  8910
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
  8911
  rm -f conftest.er1
melunko@47
  8912
  cat conftest.err >&5
melunko@47
  8913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8914
  (exit $ac_status); } &&
melunko@47
  8915
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
  8916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  8917
  (eval $ac_try) 2>&5
melunko@47
  8918
  ac_status=$?
melunko@47
  8919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8920
  (exit $ac_status); }; } &&
melunko@47
  8921
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
  8922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
  8923
  (eval $ac_try) 2>&5
melunko@47
  8924
  ac_status=$?
melunko@47
  8925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  8926
  (exit $ac_status); }; }; then
melunko@47
  8927
  ac_cv_lib_dld_dld_link=yes
melunko@47
  8928
else
melunko@47
  8929
  echo "$as_me: failed program was:" >&5
melunko@47
  8930
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
  8931
melunko@47
  8932
ac_cv_lib_dld_dld_link=no
melunko@47
  8933
fi
melunko@47
  8934
rm -f conftest.err conftest.$ac_objext \
melunko@47
  8935
      conftest$ac_exeext conftest.$ac_ext
melunko@47
  8936
LIBS=$ac_check_lib_save_LIBS
melunko@47
  8937
fi
melunko@47
  8938
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
melunko@47
  8939
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
melunko@47
  8940
if test $ac_cv_lib_dld_dld_link = yes; then
melunko@47
  8941
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
melunko@47
  8942
fi
melunko@47
  8943
melunko@47
  8944
	      
melunko@47
  8945
fi
melunko@47
  8946
melunko@47
  8947
	    
melunko@47
  8948
fi
melunko@47
  8949
melunko@47
  8950
	  
melunko@47
  8951
fi
melunko@47
  8952
melunko@47
  8953
	
melunko@47
  8954
fi
melunko@47
  8955
melunko@47
  8956
      
melunko@47
  8957
fi
melunko@47
  8958
melunko@47
  8959
    ;;
melunko@47
  8960
  esac
melunko@47
  8961
melunko@47
  8962
  if test "x$lt_cv_dlopen" != xno; then
melunko@47
  8963
    enable_dlopen=yes
melunko@47
  8964
  else
melunko@47
  8965
    enable_dlopen=no
melunko@47
  8966
  fi
melunko@47
  8967
melunko@47
  8968
  case $lt_cv_dlopen in
melunko@47
  8969
  dlopen)
melunko@47
  8970
    save_CPPFLAGS="$CPPFLAGS"
melunko@47
  8971
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
melunko@47
  8972
melunko@47
  8973
    save_LDFLAGS="$LDFLAGS"
melunko@47
  8974
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
melunko@47
  8975
melunko@47
  8976
    save_LIBS="$LIBS"
melunko@47
  8977
    LIBS="$lt_cv_dlopen_libs $LIBS"
melunko@47
  8978
melunko@47
  8979
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
melunko@47
  8980
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
melunko@47
  8981
if test "${lt_cv_dlopen_self+set}" = set; then
melunko@47
  8982
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  8983
else
melunko@47
  8984
  	  if test "$cross_compiling" = yes; then :
melunko@47
  8985
  lt_cv_dlopen_self=cross
melunko@47
  8986
else
melunko@47
  8987
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
melunko@47
  8988
  lt_status=$lt_dlunknown
melunko@47
  8989
  cat > conftest.$ac_ext <<EOF
melunko@47
  8990
#line __oline__ "configure"
melunko@47
  8991
#include "confdefs.h"
melunko@47
  8992
melunko@47
  8993
#if HAVE_DLFCN_H
melunko@47
  8994
#include <dlfcn.h>
melunko@47
  8995
#endif
melunko@47
  8996
melunko@47
  8997
#include <stdio.h>
melunko@47
  8998
melunko@47
  8999
#ifdef RTLD_GLOBAL
melunko@47
  9000
#  define LT_DLGLOBAL		RTLD_GLOBAL
melunko@47
  9001
#else
melunko@47
  9002
#  ifdef DL_GLOBAL
melunko@47
  9003
#    define LT_DLGLOBAL		DL_GLOBAL
melunko@47
  9004
#  else
melunko@47
  9005
#    define LT_DLGLOBAL		0
melunko@47
  9006
#  endif
melunko@47
  9007
#endif
melunko@47
  9008
melunko@47
  9009
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
melunko@47
  9010
   find out it does not work in some platform. */
melunko@47
  9011
#ifndef LT_DLLAZY_OR_NOW
melunko@47
  9012
#  ifdef RTLD_LAZY
melunko@47
  9013
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
melunko@47
  9014
#  else
melunko@47
  9015
#    ifdef DL_LAZY
melunko@47
  9016
#      define LT_DLLAZY_OR_NOW		DL_LAZY
melunko@47
  9017
#    else
melunko@47
  9018
#      ifdef RTLD_NOW
melunko@47
  9019
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
melunko@47
  9020
#      else
melunko@47
  9021
#        ifdef DL_NOW
melunko@47
  9022
#          define LT_DLLAZY_OR_NOW	DL_NOW
melunko@47
  9023
#        else
melunko@47
  9024
#          define LT_DLLAZY_OR_NOW	0
melunko@47
  9025
#        endif
melunko@47
  9026
#      endif
melunko@47
  9027
#    endif
melunko@47
  9028
#  endif
melunko@47
  9029
#endif
melunko@47
  9030
melunko@47
  9031
#ifdef __cplusplus
melunko@47
  9032
extern "C" void exit (int);
melunko@47
  9033
#endif
melunko@47
  9034
melunko@47
  9035
void fnord() { int i=42;}
melunko@47
  9036
int main ()
melunko@47
  9037
{
melunko@47
  9038
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
melunko@47
  9039
  int status = $lt_dlunknown;
melunko@47
  9040
melunko@47
  9041
  if (self)
melunko@47
  9042
    {
melunko@47
  9043
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
melunko@47
  9044
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
melunko@47
  9045
      /* dlclose (self); */
melunko@47
  9046
    }
melunko@47
  9047
melunko@47
  9048
    exit (status);
melunko@47
  9049
}
melunko@47
  9050
EOF
melunko@47
  9051
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  9052
  (eval $ac_link) 2>&5
melunko@47
  9053
  ac_status=$?
melunko@47
  9054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  9055
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
melunko@47
  9056
    (./conftest; exit; ) >&5 2>/dev/null
melunko@47
  9057
    lt_status=$?
melunko@47
  9058
    case x$lt_status in
melunko@47
  9059
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
melunko@47
  9060
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
melunko@47
  9061
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
melunko@47
  9062
    esac
melunko@47
  9063
  else :
melunko@47
  9064
    # compilation failed
melunko@47
  9065
    lt_cv_dlopen_self=no
melunko@47
  9066
  fi
melunko@47
  9067
fi
melunko@47
  9068
rm -fr conftest*
melunko@47
  9069
melunko@47
  9070
    
melunko@47
  9071
fi
melunko@47
  9072
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
melunko@47
  9073
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
melunko@47
  9074
melunko@47
  9075
    if test "x$lt_cv_dlopen_self" = xyes; then
melunko@47
  9076
      LDFLAGS="$LDFLAGS $link_static_flag"
melunko@47
  9077
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
melunko@47
  9078
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
melunko@47
  9079
if test "${lt_cv_dlopen_self_static+set}" = set; then
melunko@47
  9080
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  9081
else
melunko@47
  9082
  	  if test "$cross_compiling" = yes; then :
melunko@47
  9083
  lt_cv_dlopen_self_static=cross
melunko@47
  9084
else
melunko@47
  9085
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
melunko@47
  9086
  lt_status=$lt_dlunknown
melunko@47
  9087
  cat > conftest.$ac_ext <<EOF
melunko@47
  9088
#line __oline__ "configure"
melunko@47
  9089
#include "confdefs.h"
melunko@47
  9090
melunko@47
  9091
#if HAVE_DLFCN_H
melunko@47
  9092
#include <dlfcn.h>
melunko@47
  9093
#endif
melunko@47
  9094
melunko@47
  9095
#include <stdio.h>
melunko@47
  9096
melunko@47
  9097
#ifdef RTLD_GLOBAL
melunko@47
  9098
#  define LT_DLGLOBAL		RTLD_GLOBAL
melunko@47
  9099
#else
melunko@47
  9100
#  ifdef DL_GLOBAL
melunko@47
  9101
#    define LT_DLGLOBAL		DL_GLOBAL
melunko@47
  9102
#  else
melunko@47
  9103
#    define LT_DLGLOBAL		0
melunko@47
  9104
#  endif
melunko@47
  9105
#endif
melunko@47
  9106
melunko@47
  9107
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
melunko@47
  9108
   find out it does not work in some platform. */
melunko@47
  9109
#ifndef LT_DLLAZY_OR_NOW
melunko@47
  9110
#  ifdef RTLD_LAZY
melunko@47
  9111
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
melunko@47
  9112
#  else
melunko@47
  9113
#    ifdef DL_LAZY
melunko@47
  9114
#      define LT_DLLAZY_OR_NOW		DL_LAZY
melunko@47
  9115
#    else
melunko@47
  9116
#      ifdef RTLD_NOW
melunko@47
  9117
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
melunko@47
  9118
#      else
melunko@47
  9119
#        ifdef DL_NOW
melunko@47
  9120
#          define LT_DLLAZY_OR_NOW	DL_NOW
melunko@47
  9121
#        else
melunko@47
  9122
#          define LT_DLLAZY_OR_NOW	0
melunko@47
  9123
#        endif
melunko@47
  9124
#      endif
melunko@47
  9125
#    endif
melunko@47
  9126
#  endif
melunko@47
  9127
#endif
melunko@47
  9128
melunko@47
  9129
#ifdef __cplusplus
melunko@47
  9130
extern "C" void exit (int);
melunko@47
  9131
#endif
melunko@47
  9132
melunko@47
  9133
void fnord() { int i=42;}
melunko@47
  9134
int main ()
melunko@47
  9135
{
melunko@47
  9136
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
melunko@47
  9137
  int status = $lt_dlunknown;
melunko@47
  9138
melunko@47
  9139
  if (self)
melunko@47
  9140
    {
melunko@47
  9141
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
melunko@47
  9142
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
melunko@47
  9143
      /* dlclose (self); */
melunko@47
  9144
    }
melunko@47
  9145
melunko@47
  9146
    exit (status);
melunko@47
  9147
}
melunko@47
  9148
EOF
melunko@47
  9149
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
  9150
  (eval $ac_link) 2>&5
melunko@47
  9151
  ac_status=$?
melunko@47
  9152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
  9153
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
melunko@47
  9154
    (./conftest; exit; ) >&5 2>/dev/null
melunko@47
  9155
    lt_status=$?
melunko@47
  9156
    case x$lt_status in
melunko@47
  9157
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
melunko@47
  9158
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
melunko@47
  9159
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
melunko@47
  9160
    esac
melunko@47
  9161
  else :
melunko@47
  9162
    # compilation failed
melunko@47
  9163
    lt_cv_dlopen_self_static=no
melunko@47
  9164
  fi
melunko@47
  9165
fi
melunko@47
  9166
rm -fr conftest*
melunko@47
  9167
melunko@47
  9168
      
melunko@47
  9169
fi
melunko@47
  9170
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
melunko@47
  9171
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
melunko@47
  9172
    fi
melunko@47
  9173
melunko@47
  9174
    CPPFLAGS="$save_CPPFLAGS"
melunko@47
  9175
    LDFLAGS="$save_LDFLAGS"
melunko@47
  9176
    LIBS="$save_LIBS"
melunko@47
  9177
    ;;
melunko@47
  9178
  esac
melunko@47
  9179
melunko@47
  9180
  case $lt_cv_dlopen_self in
melunko@47
  9181
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
melunko@47
  9182
  *) enable_dlopen_self=unknown ;;
melunko@47
  9183
  esac
melunko@47
  9184
melunko@47
  9185
  case $lt_cv_dlopen_self_static in
melunko@47
  9186
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
melunko@47
  9187
  *) enable_dlopen_self_static=unknown ;;
melunko@47
  9188
  esac
melunko@47
  9189
fi
melunko@47
  9190
melunko@47
  9191
melunko@47
  9192
# Report which librarie types wil actually be built
melunko@47
  9193
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
melunko@47
  9194
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
melunko@47
  9195
echo "$as_me:$LINENO: result: $can_build_shared" >&5
melunko@47
  9196
echo "${ECHO_T}$can_build_shared" >&6
melunko@47
  9197
melunko@47
  9198
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
melunko@47
  9199
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
melunko@47
  9200
test "$can_build_shared" = "no" && enable_shared=no
melunko@47
  9201
melunko@47
  9202
# On AIX, shared libraries and static libraries use the same namespace, and
melunko@47
  9203
# are all built from PIC.
melunko@47
  9204
case $host_os in
melunko@47
  9205
aix3*)
melunko@47
  9206
  test "$enable_shared" = yes && enable_static=no
melunko@47
  9207
  if test -n "$RANLIB"; then
melunko@47
  9208
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
melunko@47
  9209
    postinstall_cmds='$RANLIB $lib'
melunko@47
  9210
  fi
melunko@47
  9211
  ;;
melunko@47
  9212
melunko@47
  9213
aix4* | aix5*)
melunko@47
  9214
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
melunko@47
  9215
    test "$enable_shared" = yes && enable_static=no
melunko@47
  9216
  fi
melunko@47
  9217
    ;;
melunko@47
  9218
esac
melunko@47
  9219
echo "$as_me:$LINENO: result: $enable_shared" >&5
melunko@47
  9220
echo "${ECHO_T}$enable_shared" >&6
melunko@47
  9221
melunko@47
  9222
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
melunko@47
  9223
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
melunko@47
  9224
# Make sure either enable_shared or enable_static is yes.
melunko@47
  9225
test "$enable_shared" = yes || enable_static=yes
melunko@47
  9226
echo "$as_me:$LINENO: result: $enable_static" >&5
melunko@47
  9227
echo "${ECHO_T}$enable_static" >&6
melunko@47
  9228
melunko@47
  9229
# The else clause should only fire when bootstrapping the
melunko@47
  9230
# libtool distribution, otherwise you forgot to ship ltmain.sh
melunko@47
  9231
# with your package, and you will get complaints that there are
melunko@47
  9232
# no rules to generate ltmain.sh.
melunko@47
  9233
if test -f "$ltmain"; then
melunko@47
  9234
  # See if we are running on zsh, and set the options which allow our commands through
melunko@47
  9235
  # without removal of \ escapes.
melunko@47
  9236
  if test -n "${ZSH_VERSION+set}" ; then
melunko@47
  9237
    setopt NO_GLOB_SUBST
melunko@47
  9238
  fi
melunko@47
  9239
  # Now quote all the things that may contain metacharacters while being
melunko@47
  9240
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
melunko@47
  9241
  # variables and quote the copies for generation of the libtool script.
melunko@47
  9242
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
melunko@47
  9243
    SED SHELL STRIP \
melunko@47
  9244
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
melunko@47
  9245
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
melunko@47
  9246
    deplibs_check_method reload_flag reload_cmds need_locks \
melunko@47
  9247
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
melunko@47
  9248
    lt_cv_sys_global_symbol_to_c_name_address \
melunko@47
  9249
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
melunko@47
  9250
    old_postinstall_cmds old_postuninstall_cmds \
melunko@47
  9251
    compiler \
melunko@47
  9252
    CC \
melunko@47
  9253
    LD \
melunko@47
  9254
    lt_prog_compiler_wl \
melunko@47
  9255
    lt_prog_compiler_pic \
melunko@47
  9256
    lt_prog_compiler_static \
melunko@47
  9257
    lt_prog_compiler_no_builtin_flag \
melunko@47
  9258
    export_dynamic_flag_spec \
melunko@47
  9259
    thread_safe_flag_spec \
melunko@47
  9260
    whole_archive_flag_spec \
melunko@47
  9261
    enable_shared_with_static_runtimes \
melunko@47
  9262
    old_archive_cmds \
melunko@47
  9263
    old_archive_from_new_cmds \
melunko@47
  9264
    predep_objects \
melunko@47
  9265
    postdep_objects \
melunko@47
  9266
    predeps \
melunko@47
  9267
    postdeps \
melunko@47
  9268
    compiler_lib_search_path \
melunko@47
  9269
    archive_cmds \
melunko@47
  9270
    archive_expsym_cmds \
melunko@47
  9271
    postinstall_cmds \
melunko@47
  9272
    postuninstall_cmds \
melunko@47
  9273
    old_archive_from_expsyms_cmds \
melunko@47
  9274
    allow_undefined_flag \
melunko@47
  9275
    no_undefined_flag \
melunko@47
  9276
    export_symbols_cmds \
melunko@47
  9277
    hardcode_libdir_flag_spec \
melunko@47
  9278
    hardcode_libdir_flag_spec_ld \
melunko@47
  9279
    hardcode_libdir_separator \
melunko@47
  9280
    hardcode_automatic \
melunko@47
  9281
    module_cmds \
melunko@47
  9282
    module_expsym_cmds \
melunko@47
  9283
    lt_cv_prog_compiler_c_o \
melunko@47
  9284
    exclude_expsyms \
melunko@47
  9285
    include_expsyms; do
melunko@47
  9286
melunko@47
  9287
    case $var in
melunko@47
  9288
    old_archive_cmds | \
melunko@47
  9289
    old_archive_from_new_cmds | \
melunko@47
  9290
    archive_cmds | \
melunko@47
  9291
    archive_expsym_cmds | \
melunko@47
  9292
    module_cmds | \
melunko@47
  9293
    module_expsym_cmds | \
melunko@47
  9294
    old_archive_from_expsyms_cmds | \
melunko@47
  9295
    export_symbols_cmds | \
melunko@47
  9296
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
melunko@47
  9297
    postinstall_cmds | postuninstall_cmds | \
melunko@47
  9298
    old_postinstall_cmds | old_postuninstall_cmds | \
melunko@47
  9299
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
melunko@47
  9300
      # Double-quote double-evaled strings.
melunko@47
  9301
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
melunko@47
  9302
      ;;
melunko@47
  9303
    *)
melunko@47
  9304
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
melunko@47
  9305
      ;;
melunko@47
  9306
    esac
melunko@47
  9307
  done
melunko@47
  9308
melunko@47
  9309
  case $lt_echo in
melunko@47
  9310
  *'\$0 --fallback-echo"')
melunko@47
  9311
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
melunko@47
  9312
    ;;
melunko@47
  9313
  esac
melunko@47
  9314
melunko@47
  9315
cfgfile="${ofile}T"
melunko@47
  9316
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
melunko@47
  9317
  $rm -f "$cfgfile"
melunko@47
  9318
  { echo "$as_me:$LINENO: creating $ofile" >&5
melunko@47
  9319
echo "$as_me: creating $ofile" >&6;}
melunko@47
  9320
melunko@47
  9321
  cat <<__EOF__ >> "$cfgfile"
melunko@47
  9322
#! $SHELL
melunko@47
  9323
melunko@47
  9324
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
melunko@47
  9325
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
melunko@47
  9326
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
melunko@47
  9327
#
melunko@47
  9328
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
melunko@47
  9329
# Free Software Foundation, Inc.
melunko@47
  9330
#
melunko@47
  9331
# This file is part of GNU Libtool:
melunko@47
  9332
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
melunko@47
  9333
#
melunko@47
  9334
# This program is free software; you can redistribute it and/or modify
melunko@47
  9335
# it under the terms of the GNU General Public License as published by
melunko@47
  9336
# the Free Software Foundation; either version 2 of the License, or
melunko@47
  9337
# (at your option) any later version.
melunko@47
  9338
#
melunko@47
  9339
# This program is distributed in the hope that it will be useful, but
melunko@47
  9340
# WITHOUT ANY WARRANTY; without even the implied warranty of
melunko@47
  9341
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
melunko@47
  9342
# General Public License for more details.
melunko@47
  9343
#
melunko@47
  9344
# You should have received a copy of the GNU General Public License
melunko@47
  9345
# along with this program; if not, write to the Free Software
melunko@47
  9346
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
melunko@47
  9347
#
melunko@47
  9348
# As a special exception to the GNU General Public License, if you
melunko@47
  9349
# distribute this file as part of a program that contains a
melunko@47
  9350
# configuration script generated by Autoconf, you may include it under
melunko@47
  9351
# the same distribution terms that you use for the rest of that program.
melunko@47
  9352
melunko@47
  9353
# A sed program that does not truncate output.
melunko@47
  9354
SED=$lt_SED
melunko@47
  9355
melunko@47
  9356
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
melunko@47
  9357
Xsed="$SED -e 1s/^X//"
melunko@47
  9358
melunko@47
  9359
# The HP-UX ksh and POSIX shell print the target directory to stdout
melunko@47
  9360
# if CDPATH is set.
melunko@47
  9361
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
melunko@47
  9362
melunko@47
  9363
# The names of the tagged configurations supported by this script.
melunko@47
  9364
available_tags=
melunko@47
  9365
melunko@47
  9366
# ### BEGIN LIBTOOL CONFIG
melunko@47
  9367
melunko@47
  9368
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
melunko@47
  9369
melunko@47
  9370
# Shell to use when invoking shell scripts.
melunko@47
  9371
SHELL=$lt_SHELL
melunko@47
  9372
melunko@47
  9373
# Whether or not to build shared libraries.
melunko@47
  9374
build_libtool_libs=$enable_shared
melunko@47
  9375
melunko@47
  9376
# Whether or not to build static libraries.
melunko@47
  9377
build_old_libs=$enable_static
melunko@47
  9378
melunko@47
  9379
# Whether or not to add -lc for building shared libraries.
melunko@47
  9380
build_libtool_need_lc=$archive_cmds_need_lc
melunko@47
  9381
melunko@47
  9382
# Whether or not to disallow shared libs when runtime libs are static
melunko@47
  9383
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
melunko@47
  9384
melunko@47
  9385
# Whether or not to optimize for fast installation.
melunko@47
  9386
fast_install=$enable_fast_install
melunko@47
  9387
melunko@47
  9388
# The host system.
melunko@47
  9389
host_alias=$host_alias
melunko@47
  9390
host=$host
melunko@47
  9391
host_os=$host_os
melunko@47
  9392
melunko@47
  9393
# The build system.
melunko@47
  9394
build_alias=$build_alias
melunko@47
  9395
build=$build
melunko@47
  9396
build_os=$build_os
melunko@47
  9397
melunko@47
  9398
# An echo program that does not interpret backslashes.
melunko@47
  9399
echo=$lt_echo
melunko@47
  9400
melunko@47
  9401
# The archiver.
melunko@47
  9402
AR=$lt_AR
melunko@47
  9403
AR_FLAGS=$lt_AR_FLAGS
melunko@47
  9404
melunko@47
  9405
# A C compiler.
melunko@47
  9406
LTCC=$lt_LTCC
melunko@47
  9407
melunko@47
  9408
# A language-specific compiler.
melunko@47
  9409
CC=$lt_compiler
melunko@47
  9410
melunko@47
  9411
# Is the compiler the GNU C compiler?
melunko@47
  9412
with_gcc=$GCC
melunko@47
  9413
melunko@47
  9414
# An ERE matcher.
melunko@47
  9415
EGREP=$lt_EGREP
melunko@47
  9416
melunko@47
  9417
# The linker used to build libraries.
melunko@47
  9418
LD=$lt_LD
melunko@47
  9419
melunko@47
  9420
# Whether we need hard or soft links.
melunko@47
  9421
LN_S=$lt_LN_S
melunko@47
  9422
melunko@47
  9423
# A BSD-compatible nm program.
melunko@47
  9424
NM=$lt_NM
melunko@47
  9425
melunko@47
  9426
# A symbol stripping program
melunko@47
  9427
STRIP=$lt_STRIP
melunko@47
  9428
melunko@47
  9429
# Used to examine libraries when file_magic_cmd begins "file"
melunko@47
  9430
MAGIC_CMD=$MAGIC_CMD
melunko@47
  9431
melunko@47
  9432
# Used on cygwin: DLL creation program.
melunko@47
  9433
DLLTOOL="$DLLTOOL"
melunko@47
  9434
melunko@47
  9435
# Used on cygwin: object dumper.
melunko@47
  9436
OBJDUMP="$OBJDUMP"
melunko@47
  9437
melunko@47
  9438
# Used on cygwin: assembler.
melunko@47
  9439
AS="$AS"
melunko@47
  9440
melunko@47
  9441
# The name of the directory that contains temporary libtool files.
melunko@47
  9442
objdir=$objdir
melunko@47
  9443
melunko@47
  9444
# How to create reloadable object files.
melunko@47
  9445
reload_flag=$lt_reload_flag
melunko@47
  9446
reload_cmds=$lt_reload_cmds
melunko@47
  9447
melunko@47
  9448
# How to pass a linker flag through the compiler.
melunko@47
  9449
wl=$lt_lt_prog_compiler_wl
melunko@47
  9450
melunko@47
  9451
# Object file suffix (normally "o").
melunko@47
  9452
objext="$ac_objext"
melunko@47
  9453
melunko@47
  9454
# Old archive suffix (normally "a").
melunko@47
  9455
libext="$libext"
melunko@47
  9456
melunko@47
  9457
# Shared library suffix (normally ".so").
melunko@47
  9458
shrext_cmds='$shrext_cmds'
melunko@47
  9459
melunko@47
  9460
# Executable file suffix (normally "").
melunko@47
  9461
exeext="$exeext"
melunko@47
  9462
melunko@47
  9463
# Additional compiler flags for building library objects.
melunko@47
  9464
pic_flag=$lt_lt_prog_compiler_pic
melunko@47
  9465
pic_mode=$pic_mode
melunko@47
  9466
melunko@47
  9467
# What is the maximum length of a command?
melunko@47
  9468
max_cmd_len=$lt_cv_sys_max_cmd_len
melunko@47
  9469
melunko@47
  9470
# Does compiler simultaneously support -c and -o options?
melunko@47
  9471
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
melunko@47
  9472
melunko@47
  9473
# Must we lock files when doing compilation?
melunko@47
  9474
need_locks=$lt_need_locks
melunko@47
  9475
melunko@47
  9476
# Do we need the lib prefix for modules?
melunko@47
  9477
need_lib_prefix=$need_lib_prefix
melunko@47
  9478
melunko@47
  9479
# Do we need a version for libraries?
melunko@47
  9480
need_version=$need_version
melunko@47
  9481
melunko@47
  9482
# Whether dlopen is supported.
melunko@47
  9483
dlopen_support=$enable_dlopen
melunko@47
  9484
melunko@47
  9485
# Whether dlopen of programs is supported.
melunko@47
  9486
dlopen_self=$enable_dlopen_self
melunko@47
  9487
melunko@47
  9488
# Whether dlopen of statically linked programs is supported.
melunko@47
  9489
dlopen_self_static=$enable_dlopen_self_static
melunko@47
  9490
melunko@47
  9491
# Compiler flag to prevent dynamic linking.
melunko@47
  9492
link_static_flag=$lt_lt_prog_compiler_static
melunko@47
  9493
melunko@47
  9494
# Compiler flag to turn off builtin functions.
melunko@47
  9495
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
melunko@47
  9496
melunko@47
  9497
# Compiler flag to allow reflexive dlopens.
melunko@47
  9498
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
melunko@47
  9499
melunko@47
  9500
# Compiler flag to generate shared objects directly from archives.
melunko@47
  9501
whole_archive_flag_spec=$lt_whole_archive_flag_spec
melunko@47
  9502
melunko@47
  9503
# Compiler flag to generate thread-safe objects.
melunko@47
  9504
thread_safe_flag_spec=$lt_thread_safe_flag_spec
melunko@47
  9505
melunko@47
  9506
# Library versioning type.
melunko@47
  9507
version_type=$version_type
melunko@47
  9508
melunko@47
  9509
# Format of library name prefix.
melunko@47
  9510
libname_spec=$lt_libname_spec
melunko@47
  9511
melunko@47
  9512
# List of archive names.  First name is the real one, the rest are links.
melunko@47
  9513
# The last name is the one that the linker finds with -lNAME.
melunko@47
  9514
library_names_spec=$lt_library_names_spec
melunko@47
  9515
melunko@47
  9516
# The coded name of the library, if different from the real name.
melunko@47
  9517
soname_spec=$lt_soname_spec
melunko@47
  9518
melunko@47
  9519
# Commands used to build and install an old-style archive.
melunko@47
  9520
RANLIB=$lt_RANLIB
melunko@47
  9521
old_archive_cmds=$lt_old_archive_cmds
melunko@47
  9522
old_postinstall_cmds=$lt_old_postinstall_cmds
melunko@47
  9523
old_postuninstall_cmds=$lt_old_postuninstall_cmds
melunko@47
  9524
melunko@47
  9525
# Create an old-style archive from a shared archive.
melunko@47
  9526
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
melunko@47
  9527
melunko@47
  9528
# Create a temporary old-style archive to link instead of a shared archive.
melunko@47
  9529
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
melunko@47
  9530
melunko@47
  9531
# Commands used to build and install a shared archive.
melunko@47
  9532
archive_cmds=$lt_archive_cmds
melunko@47
  9533
archive_expsym_cmds=$lt_archive_expsym_cmds
melunko@47
  9534
postinstall_cmds=$lt_postinstall_cmds
melunko@47
  9535
postuninstall_cmds=$lt_postuninstall_cmds
melunko@47
  9536
melunko@47
  9537
# Commands used to build a loadable module (assumed same as above if empty)
melunko@47
  9538
module_cmds=$lt_module_cmds
melunko@47
  9539
module_expsym_cmds=$lt_module_expsym_cmds
melunko@47
  9540
melunko@47
  9541
# Commands to strip libraries.
melunko@47
  9542
old_striplib=$lt_old_striplib
melunko@47
  9543
striplib=$lt_striplib
melunko@47
  9544
melunko@47
  9545
# Dependencies to place before the objects being linked to create a
melunko@47
  9546
# shared library.
melunko@47
  9547
predep_objects=$lt_predep_objects
melunko@47
  9548
melunko@47
  9549
# Dependencies to place after the objects being linked to create a
melunko@47
  9550
# shared library.
melunko@47
  9551
postdep_objects=$lt_postdep_objects
melunko@47
  9552
melunko@47
  9553
# Dependencies to place before the objects being linked to create a
melunko@47
  9554
# shared library.
melunko@47
  9555
predeps=$lt_predeps
melunko@47
  9556
melunko@47
  9557
# Dependencies to place after the objects being linked to create a
melunko@47
  9558
# shared library.
melunko@47
  9559
postdeps=$lt_postdeps
melunko@47
  9560
melunko@47
  9561
# The library search path used internally by the compiler when linking
melunko@47
  9562
# a shared library.
melunko@47
  9563
compiler_lib_search_path=$lt_compiler_lib_search_path
melunko@47
  9564
melunko@47
  9565
# Method to check whether dependent libraries are shared objects.
melunko@47
  9566
deplibs_check_method=$lt_deplibs_check_method
melunko@47
  9567
melunko@47
  9568
# Command to use when deplibs_check_method == file_magic.
melunko@47
  9569
file_magic_cmd=$lt_file_magic_cmd
melunko@47
  9570
melunko@47
  9571
# Flag that allows shared libraries with undefined symbols to be built.
melunko@47
  9572
allow_undefined_flag=$lt_allow_undefined_flag
melunko@47
  9573
melunko@47
  9574
# Flag that forces no undefined symbols.
melunko@47
  9575
no_undefined_flag=$lt_no_undefined_flag
melunko@47
  9576
melunko@47
  9577
# Commands used to finish a libtool library installation in a directory.
melunko@47
  9578
finish_cmds=$lt_finish_cmds
melunko@47
  9579
melunko@47
  9580
# Same as above, but a single script fragment to be evaled but not shown.
melunko@47
  9581
finish_eval=$lt_finish_eval
melunko@47
  9582
melunko@47
  9583
# Take the output of nm and produce a listing of raw symbols and C names.
melunko@47
  9584
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
melunko@47
  9585
melunko@47
  9586
# Transform the output of nm in a proper C declaration
melunko@47
  9587
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
melunko@47
  9588
melunko@47
  9589
# Transform the output of nm in a C name address pair
melunko@47
  9590
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
melunko@47
  9591
melunko@47
  9592
# This is the shared library runtime path variable.
melunko@47
  9593
runpath_var=$runpath_var
melunko@47
  9594
melunko@47
  9595
# This is the shared library path variable.
melunko@47
  9596
shlibpath_var=$shlibpath_var
melunko@47
  9597
melunko@47
  9598
# Is shlibpath searched before the hard-coded library search path?
melunko@47
  9599
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
melunko@47
  9600
melunko@47
  9601
# How to hardcode a shared library path into an executable.
melunko@47
  9602
hardcode_action=$hardcode_action
melunko@47
  9603
melunko@47
  9604
# Whether we should hardcode library paths into libraries.
melunko@47
  9605
hardcode_into_libs=$hardcode_into_libs
melunko@47
  9606
melunko@47
  9607
# Flag to hardcode \$libdir into a binary during linking.
melunko@47
  9608
# This must work even if \$libdir does not exist.
melunko@47
  9609
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
melunko@47
  9610
melunko@47
  9611
# If ld is used when linking, flag to hardcode \$libdir into
melunko@47
  9612
# a binary during linking. This must work even if \$libdir does
melunko@47
  9613
# not exist.
melunko@47
  9614
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
melunko@47
  9615
melunko@47
  9616
# Whether we need a single -rpath flag with a separated argument.
melunko@47
  9617
hardcode_libdir_separator=$lt_hardcode_libdir_separator
melunko@47
  9618
melunko@47
  9619
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
melunko@47
  9620
# resulting binary.
melunko@47
  9621
hardcode_direct=$hardcode_direct
melunko@47
  9622
melunko@47
  9623
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
melunko@47
  9624
# resulting binary.
melunko@47
  9625
hardcode_minus_L=$hardcode_minus_L
melunko@47
  9626
melunko@47
  9627
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
melunko@47
  9628
# the resulting binary.
melunko@47
  9629
hardcode_shlibpath_var=$hardcode_shlibpath_var
melunko@47
  9630
melunko@47
  9631
# Set to yes if building a shared library automatically hardcodes DIR into the library
melunko@47
  9632
# and all subsequent libraries and executables linked against it.
melunko@47
  9633
hardcode_automatic=$hardcode_automatic
melunko@47
  9634
melunko@47
  9635
# Variables whose values should be saved in libtool wrapper scripts and
melunko@47
  9636
# restored at relink time.
melunko@47
  9637
variables_saved_for_relink="$variables_saved_for_relink"
melunko@47
  9638
melunko@47
  9639
# Whether libtool must link a program against all its dependency libraries.
melunko@47
  9640
link_all_deplibs=$link_all_deplibs
melunko@47
  9641
melunko@47
  9642
# Compile-time system search path for libraries
melunko@47
  9643
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
melunko@47
  9644
melunko@47
  9645
# Run-time system search path for libraries
melunko@47
  9646
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
melunko@47
  9647
melunko@47
  9648
# Fix the shell variable \$srcfile for the compiler.
melunko@47
  9649
fix_srcfile_path="$fix_srcfile_path"
melunko@47
  9650
melunko@47
  9651
# Set to yes if exported symbols are required.
melunko@47
  9652
always_export_symbols=$always_export_symbols
melunko@47
  9653
melunko@47
  9654
# The commands to list exported symbols.
melunko@47
  9655
export_symbols_cmds=$lt_export_symbols_cmds
melunko@47
  9656
melunko@47
  9657
# The commands to extract the exported symbol list from a shared archive.
melunko@47
  9658
extract_expsyms_cmds=$lt_extract_expsyms_cmds
melunko@47
  9659
melunko@47
  9660
# Symbols that should not be listed in the preloaded symbols.
melunko@47
  9661
exclude_expsyms=$lt_exclude_expsyms
melunko@47
  9662
melunko@47
  9663
# Symbols that must always be exported.
melunko@47
  9664
include_expsyms=$lt_include_expsyms
melunko@47
  9665
melunko@47
  9666
# ### END LIBTOOL CONFIG
melunko@47
  9667
melunko@47
  9668
__EOF__
melunko@47
  9669
melunko@47
  9670
melunko@47
  9671
  case $host_os in
melunko@47
  9672
  aix3*)
melunko@47
  9673
    cat <<\EOF >> "$cfgfile"
melunko@47
  9674
melunko@47
  9675
# AIX sometimes has problems with the GCC collect2 program.  For some
melunko@47
  9676
# reason, if we set the COLLECT_NAMES environment variable, the problems
melunko@47
  9677
# vanish in a puff of smoke.
melunko@47
  9678
if test "X${COLLECT_NAMES+set}" != Xset; then
melunko@47
  9679
  COLLECT_NAMES=
melunko@47
  9680
  export COLLECT_NAMES
melunko@47
  9681
fi
melunko@47
  9682
EOF
melunko@47
  9683
    ;;
melunko@47
  9684
  esac
melunko@47
  9685
melunko@47
  9686
  # We use sed instead of cat because bash on DJGPP gets confused if
melunko@47
  9687
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
melunko@47
  9688
  # text mode, it properly converts lines to CR/LF.  This bash problem
melunko@47
  9689
  # is reportedly fixed, but why not run on old versions too?
melunko@47
  9690
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
melunko@47
  9691
melunko@47
  9692
  mv -f "$cfgfile" "$ofile" || \
melunko@47
  9693
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
melunko@47
  9694
  chmod +x "$ofile"
melunko@47
  9695
melunko@47
  9696
else
melunko@47
  9697
  # If there is no Makefile yet, we rely on a make rule to execute
melunko@47
  9698
  # `config.status --recheck' to rerun these tests and create the
melunko@47
  9699
  # libtool script then.
melunko@47
  9700
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
melunko@47
  9701
  if test -f "$ltmain_in"; then
melunko@47
  9702
    test -f Makefile && make "$ltmain"
melunko@47
  9703
  fi
melunko@47
  9704
fi
melunko@47
  9705
melunko@47
  9706
melunko@47
  9707
ac_ext=c
melunko@47
  9708
ac_cpp='$CPP $CPPFLAGS'
melunko@47
  9709
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  9710
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  9711
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
  9712
melunko@47
  9713
CC="$lt_save_CC"
melunko@47
  9714
melunko@47
  9715
melunko@47
  9716
# Check whether --with-tags or --without-tags was given.
melunko@47
  9717
if test "${with_tags+set}" = set; then
melunko@47
  9718
  withval="$with_tags"
melunko@47
  9719
  tagnames="$withval"
melunko@47
  9720
fi; 
melunko@47
  9721
melunko@47
  9722
if test -f "$ltmain" && test -n "$tagnames"; then
melunko@47
  9723
  if test ! -f "${ofile}"; then
melunko@47
  9724
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
melunko@47
  9725
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
melunko@47
  9726
  fi
melunko@47
  9727
melunko@47
  9728
  if test -z "$LTCC"; then
melunko@47
  9729
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
melunko@47
  9730
    if test -z "$LTCC"; then
melunko@47
  9731
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
melunko@47
  9732
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
melunko@47
  9733
    else
melunko@47
  9734
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
melunko@47
  9735
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
melunko@47
  9736
    fi
melunko@47
  9737
  fi
melunko@47
  9738
melunko@47
  9739
  # Extract list of available tagged configurations in $ofile.
melunko@47
  9740
  # Note that this assumes the entire list is on one line.
melunko@47
  9741
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
melunko@47
  9742
melunko@47
  9743
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
melunko@47
  9744
  for tagname in $tagnames; do
melunko@47
  9745
    IFS="$lt_save_ifs"
melunko@47
  9746
    # Check whether tagname contains only valid characters
melunko@47
  9747
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
melunko@47
  9748
    "") ;;
melunko@47
  9749
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
melunko@47
  9750
echo "$as_me: error: invalid tag name: $tagname" >&2;}
melunko@47
  9751
   { (exit 1); exit 1; }; }
melunko@47
  9752
	;;
melunko@47
  9753
    esac
melunko@47
  9754
melunko@47
  9755
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
melunko@47
  9756
    then
melunko@47
  9757
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
melunko@47
  9758
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
melunko@47
  9759
   { (exit 1); exit 1; }; }
melunko@47
  9760
    fi
melunko@47
  9761
melunko@47
  9762
    # Update the list of available tags.
melunko@47
  9763
    if test -n "$tagname"; then
melunko@47
  9764
      echo appending configuration tag \"$tagname\" to $ofile
melunko@47
  9765
melunko@47
  9766
      case $tagname in
melunko@47
  9767
      CXX)
melunko@47
  9768
	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
melunko@47
  9769
	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
melunko@47
  9770
	    (test "X$CXX" != "Xg++"))) ; then
melunko@47
  9771
	  ac_ext=cc
melunko@47
  9772
ac_cpp='$CXXCPP $CPPFLAGS'
melunko@47
  9773
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
  9774
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
  9775
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
melunko@47
  9776
melunko@47
  9777
melunko@47
  9778
melunko@47
  9779
melunko@47
  9780
archive_cmds_need_lc_CXX=no
melunko@47
  9781
allow_undefined_flag_CXX=
melunko@47
  9782
always_export_symbols_CXX=no
melunko@47
  9783
archive_expsym_cmds_CXX=
melunko@47
  9784
export_dynamic_flag_spec_CXX=
melunko@47
  9785
hardcode_direct_CXX=no
melunko@47
  9786
hardcode_libdir_flag_spec_CXX=
melunko@47
  9787
hardcode_libdir_flag_spec_ld_CXX=
melunko@47
  9788
hardcode_libdir_separator_CXX=
melunko@47
  9789
hardcode_minus_L_CXX=no
melunko@47
  9790
hardcode_automatic_CXX=no
melunko@47
  9791
module_cmds_CXX=
melunko@47
  9792
module_expsym_cmds_CXX=
melunko@47
  9793
link_all_deplibs_CXX=unknown
melunko@47
  9794
old_archive_cmds_CXX=$old_archive_cmds
melunko@47
  9795
no_undefined_flag_CXX=
melunko@47
  9796
whole_archive_flag_spec_CXX=
melunko@47
  9797
enable_shared_with_static_runtimes_CXX=no
melunko@47
  9798
melunko@47
  9799
# Dependencies to place before and after the object being linked:
melunko@47
  9800
predep_objects_CXX=
melunko@47
  9801
postdep_objects_CXX=
melunko@47
  9802
predeps_CXX=
melunko@47
  9803
postdeps_CXX=
melunko@47
  9804
compiler_lib_search_path_CXX=
melunko@47
  9805
melunko@47
  9806
# Source file extension for C++ test sources.
melunko@47
  9807
ac_ext=cpp
melunko@47
  9808
melunko@47
  9809
# Object file extension for compiled C++ test sources.
melunko@47
  9810
objext=o
melunko@47
  9811
objext_CXX=$objext
melunko@47
  9812
melunko@47
  9813
# Code to be used in simple compile tests
melunko@47
  9814
lt_simple_compile_test_code="int some_variable = 0;\n"
melunko@47
  9815
melunko@47
  9816
# Code to be used in simple link tests
melunko@47
  9817
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
melunko@47
  9818
melunko@47
  9819
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
melunko@47
  9820
melunko@47
  9821
# If no C compiler was specified, use CC.
melunko@47
  9822
LTCC=${LTCC-"$CC"}
melunko@47
  9823
melunko@47
  9824
# Allow CC to be a program name with arguments.
melunko@47
  9825
compiler=$CC
melunko@47
  9826
melunko@47
  9827
melunko@47
  9828
# save warnings/boilerplate of simple test code
melunko@47
  9829
ac_outfile=conftest.$ac_objext
melunko@47
  9830
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
melunko@47
  9831
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
melunko@47
  9832
_lt_compiler_boilerplate=`cat conftest.err`
melunko@47
  9833
$rm conftest*
melunko@47
  9834
melunko@47
  9835
ac_outfile=conftest.$ac_objext
melunko@47
  9836
printf "$lt_simple_link_test_code" >conftest.$ac_ext
melunko@47
  9837
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
melunko@47
  9838
_lt_linker_boilerplate=`cat conftest.err`
melunko@47
  9839
$rm conftest*
melunko@47
  9840
melunko@47
  9841
melunko@47
  9842
# Allow CC to be a program name with arguments.
melunko@47
  9843
lt_save_CC=$CC
melunko@47
  9844
lt_save_LD=$LD
melunko@47
  9845
lt_save_GCC=$GCC
melunko@47
  9846
GCC=$GXX
melunko@47
  9847
lt_save_with_gnu_ld=$with_gnu_ld
melunko@47
  9848
lt_save_path_LD=$lt_cv_path_LD
melunko@47
  9849
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
melunko@47
  9850
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
melunko@47
  9851
else
melunko@47
  9852
  unset lt_cv_prog_gnu_ld
melunko@47
  9853
fi
melunko@47
  9854
if test -n "${lt_cv_path_LDCXX+set}"; then
melunko@47
  9855
  lt_cv_path_LD=$lt_cv_path_LDCXX
melunko@47
  9856
else
melunko@47
  9857
  unset lt_cv_path_LD
melunko@47
  9858
fi
melunko@47
  9859
test -z "${LDCXX+set}" || LD=$LDCXX
melunko@47
  9860
CC=${CXX-"c++"}
melunko@47
  9861
compiler=$CC
melunko@47
  9862
compiler_CXX=$CC
melunko@47
  9863
for cc_temp in $compiler""; do
melunko@47
  9864
  case $cc_temp in
melunko@47
  9865
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
melunko@47
  9866
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
melunko@47
  9867
    \-*) ;;
melunko@47
  9868
    *) break;;
melunko@47
  9869
  esac
melunko@47
  9870
done
melunko@47
  9871
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
melunko@47
  9872
melunko@47
  9873
melunko@47
  9874
# We don't want -fno-exception wen compiling C++ code, so set the
melunko@47
  9875
# no_builtin_flag separately
melunko@47
  9876
if test "$GXX" = yes; then
melunko@47
  9877
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
melunko@47
  9878
else
melunko@47
  9879
  lt_prog_compiler_no_builtin_flag_CXX=
melunko@47
  9880
fi
melunko@47
  9881
melunko@47
  9882
if test "$GXX" = yes; then
melunko@47
  9883
  # Set up default GNU C++ configuration
melunko@47
  9884
melunko@47
  9885
  
melunko@47
  9886
# Check whether --with-gnu-ld or --without-gnu-ld was given.
melunko@47
  9887
if test "${with_gnu_ld+set}" = set; then
melunko@47
  9888
  withval="$with_gnu_ld"
melunko@47
  9889
  test "$withval" = no || with_gnu_ld=yes
melunko@47
  9890
else
melunko@47
  9891
  with_gnu_ld=no
melunko@47
  9892
fi; 
melunko@47
  9893
ac_prog=ld
melunko@47
  9894
if test "$GCC" = yes; then
melunko@47
  9895
  # Check if gcc -print-prog-name=ld gives a path.
melunko@47
  9896
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
melunko@47
  9897
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
melunko@47
  9898
  case $host in
melunko@47
  9899
  *-*-mingw*)
melunko@47
  9900
    # gcc leaves a trailing carriage return which upsets mingw
melunko@47
  9901
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
melunko@47
  9902
  *)
melunko@47
  9903
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
melunko@47
  9904
  esac
melunko@47
  9905
  case $ac_prog in
melunko@47
  9906
    # Accept absolute paths.
melunko@47
  9907
    [\\/]* | ?:[\\/]*)
melunko@47
  9908
      re_direlt='/[^/][^/]*/\.\./'
melunko@47
  9909
      # Canonicalize the pathname of ld
melunko@47
  9910
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
melunko@47
  9911
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
melunko@47
  9912
	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
melunko@47
  9913
      done
melunko@47
  9914
      test -z "$LD" && LD="$ac_prog"
melunko@47
  9915
      ;;
melunko@47
  9916
  "")
melunko@47
  9917
    # If it fails, then pretend we aren't using GCC.
melunko@47
  9918
    ac_prog=ld
melunko@47
  9919
    ;;
melunko@47
  9920
  *)
melunko@47
  9921
    # If it is relative, then search for the first ld in PATH.
melunko@47
  9922
    with_gnu_ld=unknown
melunko@47
  9923
    ;;
melunko@47
  9924
  esac
melunko@47
  9925
elif test "$with_gnu_ld" = yes; then
melunko@47
  9926
  echo "$as_me:$LINENO: checking for GNU ld" >&5
melunko@47
  9927
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
melunko@47
  9928
else
melunko@47
  9929
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
melunko@47
  9930
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
melunko@47
  9931
fi
melunko@47
  9932
if test "${lt_cv_path_LD+set}" = set; then
melunko@47
  9933
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  9934
else
melunko@47
  9935
  if test -z "$LD"; then
melunko@47
  9936
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
melunko@47
  9937
  for ac_dir in $PATH; do
melunko@47
  9938
    IFS="$lt_save_ifs"
melunko@47
  9939
    test -z "$ac_dir" && ac_dir=.
melunko@47
  9940
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
melunko@47
  9941
      lt_cv_path_LD="$ac_dir/$ac_prog"
melunko@47
  9942
      # Check to see if the program is GNU ld.  I'd rather use --version,
melunko@47
  9943
      # but apparently some variants of GNU ld only accept -v.
melunko@47
  9944
      # Break only if it was the GNU/non-GNU ld that we prefer.
melunko@47
  9945
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
melunko@47
  9946
      *GNU* | *'with BFD'*)
melunko@47
  9947
	test "$with_gnu_ld" != no && break
melunko@47
  9948
	;;
melunko@47
  9949
      *)
melunko@47
  9950
	test "$with_gnu_ld" != yes && break
melunko@47
  9951
	;;
melunko@47
  9952
      esac
melunko@47
  9953
    fi
melunko@47
  9954
  done
melunko@47
  9955
  IFS="$lt_save_ifs"
melunko@47
  9956
else
melunko@47
  9957
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
melunko@47
  9958
fi
melunko@47
  9959
fi
melunko@47
  9960
melunko@47
  9961
LD="$lt_cv_path_LD"
melunko@47
  9962
if test -n "$LD"; then
melunko@47
  9963
  echo "$as_me:$LINENO: result: $LD" >&5
melunko@47
  9964
echo "${ECHO_T}$LD" >&6
melunko@47
  9965
else
melunko@47
  9966
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
  9967
echo "${ECHO_T}no" >&6
melunko@47
  9968
fi
melunko@47
  9969
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
melunko@47
  9970
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
melunko@47
  9971
   { (exit 1); exit 1; }; }
melunko@47
  9972
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
melunko@47
  9973
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
melunko@47
  9974
if test "${lt_cv_prog_gnu_ld+set}" = set; then
melunko@47
  9975
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
  9976
else
melunko@47
  9977
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
melunko@47
  9978
case `$LD -v 2>&1 </dev/null` in
melunko@47
  9979
*GNU* | *'with BFD'*)
melunko@47
  9980
  lt_cv_prog_gnu_ld=yes
melunko@47
  9981
  ;;
melunko@47
  9982
*)
melunko@47
  9983
  lt_cv_prog_gnu_ld=no
melunko@47
  9984
  ;;
melunko@47
  9985
esac
melunko@47
  9986
fi
melunko@47
  9987
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
melunko@47
  9988
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
melunko@47
  9989
with_gnu_ld=$lt_cv_prog_gnu_ld
melunko@47
  9990
melunko@47
  9991
melunko@47
  9992
melunko@47
  9993
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
melunko@47
  9994
  # archiving commands below assume that GNU ld is being used.
melunko@47
  9995
  if test "$with_gnu_ld" = yes; then
melunko@47
  9996
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
  9997
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
melunko@47
  9998
melunko@47
  9999
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
melunko@47
 10000
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
melunko@47
 10001
melunko@47
 10002
    # If archive_cmds runs LD, not CC, wlarc should be empty
melunko@47
 10003
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
melunko@47
 10004
    #     investigate it a little bit more. (MM)
melunko@47
 10005
    wlarc='${wl}'
melunko@47
 10006
melunko@47
 10007
    # ancient GNU ld didn't support --whole-archive et. al.
melunko@47
 10008
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
melunko@47
 10009
	grep 'no-whole-archive' > /dev/null; then
melunko@47
 10010
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
melunko@47
 10011
    else
melunko@47
 10012
      whole_archive_flag_spec_CXX=
melunko@47
 10013
    fi
melunko@47
 10014
  else
melunko@47
 10015
    with_gnu_ld=no
melunko@47
 10016
    wlarc=
melunko@47
 10017
melunko@47
 10018
    # A generic and very simple default shared library creation
melunko@47
 10019
    # command for GNU C++ for the case where it uses the native
melunko@47
 10020
    # linker, instead of GNU ld.  If possible, this setting should
melunko@47
 10021
    # overridden to take advantage of the native linker features on
melunko@47
 10022
    # the platform it is being used on.
melunko@47
 10023
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
melunko@47
 10024
  fi
melunko@47
 10025
melunko@47
 10026
  # Commands to make compiler produce verbose output that lists
melunko@47
 10027
  # what "hidden" libraries, object files and flags are used when
melunko@47
 10028
  # linking a shared library.
melunko@47
 10029
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
melunko@47
 10030
melunko@47
 10031
else
melunko@47
 10032
  GXX=no
melunko@47
 10033
  with_gnu_ld=no
melunko@47
 10034
  wlarc=
melunko@47
 10035
fi
melunko@47
 10036
melunko@47
 10037
# PORTME: fill in a description of your system's C++ link characteristics
melunko@47
 10038
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
melunko@47
 10039
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
melunko@47
 10040
ld_shlibs_CXX=yes
melunko@47
 10041
case $host_os in
melunko@47
 10042
  aix3*)
melunko@47
 10043
    # FIXME: insert proper C++ library support
melunko@47
 10044
    ld_shlibs_CXX=no
melunko@47
 10045
    ;;
melunko@47
 10046
  aix4* | aix5*)
melunko@47
 10047
    if test "$host_cpu" = ia64; then
melunko@47
 10048
      # On IA64, the linker does run time linking by default, so we don't
melunko@47
 10049
      # have to do anything special.
melunko@47
 10050
      aix_use_runtimelinking=no
melunko@47
 10051
      exp_sym_flag='-Bexport'
melunko@47
 10052
      no_entry_flag=""
melunko@47
 10053
    else
melunko@47
 10054
      aix_use_runtimelinking=no
melunko@47
 10055
melunko@47
 10056
      # Test if we are trying to use run time linking or normal
melunko@47
 10057
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
melunko@47
 10058
      # need to do runtime linking.
melunko@47
 10059
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
melunko@47
 10060
	for ld_flag in $LDFLAGS; do
melunko@47
 10061
	  case $ld_flag in
melunko@47
 10062
	  *-brtl*)
melunko@47
 10063
	    aix_use_runtimelinking=yes
melunko@47
 10064
	    break
melunko@47
 10065
	    ;;
melunko@47
 10066
	  esac
melunko@47
 10067
	done
melunko@47
 10068
      esac
melunko@47
 10069
melunko@47
 10070
      exp_sym_flag='-bexport'
melunko@47
 10071
      no_entry_flag='-bnoentry'
melunko@47
 10072
    fi
melunko@47
 10073
melunko@47
 10074
    # When large executables or shared objects are built, AIX ld can
melunko@47
 10075
    # have problems creating the table of contents.  If linking a library
melunko@47
 10076
    # or program results in "error TOC overflow" add -mminimal-toc to
melunko@47
 10077
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
melunko@47
 10078
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
melunko@47
 10079
melunko@47
 10080
    archive_cmds_CXX=''
melunko@47
 10081
    hardcode_direct_CXX=yes
melunko@47
 10082
    hardcode_libdir_separator_CXX=':'
melunko@47
 10083
    link_all_deplibs_CXX=yes
melunko@47
 10084
melunko@47
 10085
    if test "$GXX" = yes; then
melunko@47
 10086
      case $host_os in aix4.[012]|aix4.[012].*)
melunko@47
 10087
      # We only want to do this on AIX 4.2 and lower, the check
melunko@47
 10088
      # below for broken collect2 doesn't work under 4.3+
melunko@47
 10089
	collect2name=`${CC} -print-prog-name=collect2`
melunko@47
 10090
	if test -f "$collect2name" && \
melunko@47
 10091
	   strings "$collect2name" | grep resolve_lib_name >/dev/null
melunko@47
 10092
	then
melunko@47
 10093
	  # We have reworked collect2
melunko@47
 10094
	  hardcode_direct_CXX=yes
melunko@47
 10095
	else
melunko@47
 10096
	  # We have old collect2
melunko@47
 10097
	  hardcode_direct_CXX=unsupported
melunko@47
 10098
	  # It fails to find uninstalled libraries when the uninstalled
melunko@47
 10099
	  # path is not listed in the libpath.  Setting hardcode_minus_L
melunko@47
 10100
	  # to unsupported forces relinking
melunko@47
 10101
	  hardcode_minus_L_CXX=yes
melunko@47
 10102
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
melunko@47
 10103
	  hardcode_libdir_separator_CXX=
melunko@47
 10104
	fi
melunko@47
 10105
      esac
melunko@47
 10106
      shared_flag='-shared'
melunko@47
 10107
      if test "$aix_use_runtimelinking" = yes; then
melunko@47
 10108
	shared_flag="$shared_flag "'${wl}-G'
melunko@47
 10109
      fi
melunko@47
 10110
    else
melunko@47
 10111
      # not using gcc
melunko@47
 10112
      if test "$host_cpu" = ia64; then
melunko@47
 10113
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
melunko@47
 10114
	# chokes on -Wl,-G. The following line is correct:
melunko@47
 10115
	shared_flag='-G'
melunko@47
 10116
      else
melunko@47
 10117
	if test "$aix_use_runtimelinking" = yes; then
melunko@47
 10118
	  shared_flag='${wl}-G'
melunko@47
 10119
	else
melunko@47
 10120
	  shared_flag='${wl}-bM:SRE'
melunko@47
 10121
	fi
melunko@47
 10122
      fi
melunko@47
 10123
    fi
melunko@47
 10124
melunko@47
 10125
    # It seems that -bexpall does not export symbols beginning with
melunko@47
 10126
    # underscore (_), so it is better to generate a list of symbols to export.
melunko@47
 10127
    always_export_symbols_CXX=yes
melunko@47
 10128
    if test "$aix_use_runtimelinking" = yes; then
melunko@47
 10129
      # Warning - without using the other runtime loading flags (-brtl),
melunko@47
 10130
      # -berok will link without error, but may produce a broken library.
melunko@47
 10131
      allow_undefined_flag_CXX='-berok'
melunko@47
 10132
      # Determine the default libpath from the value encoded in an empty executable.
melunko@47
 10133
      cat >conftest.$ac_ext <<_ACEOF
melunko@47
 10134
/* confdefs.h.  */
melunko@47
 10135
_ACEOF
melunko@47
 10136
cat confdefs.h >>conftest.$ac_ext
melunko@47
 10137
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 10138
/* end confdefs.h.  */
melunko@47
 10139
melunko@47
 10140
int
melunko@47
 10141
main ()
melunko@47
 10142
{
melunko@47
 10143
melunko@47
 10144
  ;
melunko@47
 10145
  return 0;
melunko@47
 10146
}
melunko@47
 10147
_ACEOF
melunko@47
 10148
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 10149
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 10150
  (eval $ac_link) 2>conftest.er1
melunko@47
 10151
  ac_status=$?
melunko@47
 10152
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 10153
  rm -f conftest.er1
melunko@47
 10154
  cat conftest.err >&5
melunko@47
 10155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 10156
  (exit $ac_status); } &&
melunko@47
 10157
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
 10158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 10159
  (eval $ac_try) 2>&5
melunko@47
 10160
  ac_status=$?
melunko@47
 10161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 10162
  (exit $ac_status); }; } &&
melunko@47
 10163
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 10164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 10165
  (eval $ac_try) 2>&5
melunko@47
 10166
  ac_status=$?
melunko@47
 10167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 10168
  (exit $ac_status); }; }; then
melunko@47
 10169
  
melunko@47
 10170
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
 10171
}'`
melunko@47
 10172
# Check for a 64-bit object if we didn't find anything.
melunko@47
 10173
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
 10174
}'`; fi
melunko@47
 10175
else
melunko@47
 10176
  echo "$as_me: failed program was:" >&5
melunko@47
 10177
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 10178
melunko@47
 10179
fi
melunko@47
 10180
rm -f conftest.err conftest.$ac_objext \
melunko@47
 10181
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 10182
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
melunko@47
 10183
melunko@47
 10184
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
melunko@47
 10185
melunko@47
 10186
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
melunko@47
 10187
     else
melunko@47
 10188
      if test "$host_cpu" = ia64; then
melunko@47
 10189
	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
melunko@47
 10190
	allow_undefined_flag_CXX="-z nodefs"
melunko@47
 10191
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
melunko@47
 10192
      else
melunko@47
 10193
	# Determine the default libpath from the value encoded in an empty executable.
melunko@47
 10194
	cat >conftest.$ac_ext <<_ACEOF
melunko@47
 10195
/* confdefs.h.  */
melunko@47
 10196
_ACEOF
melunko@47
 10197
cat confdefs.h >>conftest.$ac_ext
melunko@47
 10198
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 10199
/* end confdefs.h.  */
melunko@47
 10200
melunko@47
 10201
int
melunko@47
 10202
main ()
melunko@47
 10203
{
melunko@47
 10204
melunko@47
 10205
  ;
melunko@47
 10206
  return 0;
melunko@47
 10207
}
melunko@47
 10208
_ACEOF
melunko@47
 10209
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 10210
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 10211
  (eval $ac_link) 2>conftest.er1
melunko@47
 10212
  ac_status=$?
melunko@47
 10213
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 10214
  rm -f conftest.er1
melunko@47
 10215
  cat conftest.err >&5
melunko@47
 10216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 10217
  (exit $ac_status); } &&
melunko@47
 10218
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
 10219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 10220
  (eval $ac_try) 2>&5
melunko@47
 10221
  ac_status=$?
melunko@47
 10222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 10223
  (exit $ac_status); }; } &&
melunko@47
 10224
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 10225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 10226
  (eval $ac_try) 2>&5
melunko@47
 10227
  ac_status=$?
melunko@47
 10228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 10229
  (exit $ac_status); }; }; then
melunko@47
 10230
  
melunko@47
 10231
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
 10232
}'`
melunko@47
 10233
# Check for a 64-bit object if we didn't find anything.
melunko@47
 10234
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
 10235
}'`; fi
melunko@47
 10236
else
melunko@47
 10237
  echo "$as_me: failed program was:" >&5
melunko@47
 10238
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 10239
melunko@47
 10240
fi
melunko@47
 10241
rm -f conftest.err conftest.$ac_objext \
melunko@47
 10242
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 10243
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
melunko@47
 10244
melunko@47
 10245
	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
melunko@47
 10246
	# Warning - without using the other run time loading flags,
melunko@47
 10247
	# -berok will link without error, but may produce a broken library.
melunko@47
 10248
	no_undefined_flag_CXX=' ${wl}-bernotok'
melunko@47
 10249
	allow_undefined_flag_CXX=' ${wl}-berok'
melunko@47
 10250
	# -bexpall does not export symbols beginning with underscore (_)
melunko@47
 10251
	always_export_symbols_CXX=yes
melunko@47
 10252
	# Exported symbols can be pulled into shared objects from archives
melunko@47
 10253
	whole_archive_flag_spec_CXX=' '
melunko@47
 10254
	archive_cmds_need_lc_CXX=yes
melunko@47
 10255
	# This is similar to how AIX traditionally builds its shared libraries.
melunko@47
 10256
	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
melunko@47
 10257
      fi
melunko@47
 10258
    fi
melunko@47
 10259
    ;;
melunko@47
 10260
  chorus*)
melunko@47
 10261
    case $cc_basename in
melunko@47
 10262
      *)
melunko@47
 10263
	# FIXME: insert proper C++ library support
melunko@47
 10264
	ld_shlibs_CXX=no
melunko@47
 10265
	;;
melunko@47
 10266
    esac
melunko@47
 10267
    ;;
melunko@47
 10268
melunko@47
 10269
melunko@47
 10270
  cygwin* | mingw* | pw32*)
melunko@47
 10271
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
melunko@47
 10272
    # as there is no search path for DLLs.
melunko@47
 10273
    hardcode_libdir_flag_spec_CXX='-L$libdir'
melunko@47
 10274
    allow_undefined_flag_CXX=unsupported
melunko@47
 10275
    always_export_symbols_CXX=no
melunko@47
 10276
    enable_shared_with_static_runtimes_CXX=yes
melunko@47
 10277
melunko@47
 10278
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
melunko@47
 10279
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
melunko@47
 10280
      # If the export-symbols file already is a .def file (1st line
melunko@47
 10281
      # is EXPORTS), use it as is; otherwise, prepend...
melunko@47
 10282
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
melunko@47
 10283
	cp $export_symbols $output_objdir/$soname.def;
melunko@47
 10284
      else
melunko@47
 10285
	echo EXPORTS > $output_objdir/$soname.def;
melunko@47
 10286
	cat $export_symbols >> $output_objdir/$soname.def;
melunko@47
 10287
      fi~
melunko@47
 10288
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
melunko@47
 10289
    else
melunko@47
 10290
      ld_shlibs_CXX=no
melunko@47
 10291
    fi
melunko@47
 10292
  ;;
melunko@47
 10293
      darwin* | rhapsody*)
melunko@47
 10294
        case $host_os in
melunko@47
 10295
        rhapsody* | darwin1.[012])
melunko@47
 10296
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
melunko@47
 10297
         ;;
melunko@47
 10298
       *) # Darwin 1.3 on
melunko@47
 10299
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
melunko@47
 10300
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
melunko@47
 10301
         else
melunko@47
 10302
           case ${MACOSX_DEPLOYMENT_TARGET} in
melunko@47
 10303
             10.[012])
melunko@47
 10304
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
melunko@47
 10305
               ;;
melunko@47
 10306
             10.*)
melunko@47
 10307
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
melunko@47
 10308
               ;;
melunko@47
 10309
           esac
melunko@47
 10310
         fi
melunko@47
 10311
         ;;
melunko@47
 10312
        esac
melunko@47
 10313
      archive_cmds_need_lc_CXX=no
melunko@47
 10314
      hardcode_direct_CXX=no
melunko@47
 10315
      hardcode_automatic_CXX=yes
melunko@47
 10316
      hardcode_shlibpath_var_CXX=unsupported
melunko@47
 10317
      whole_archive_flag_spec_CXX=''
melunko@47
 10318
      link_all_deplibs_CXX=yes
melunko@47
 10319
melunko@47
 10320
    if test "$GXX" = yes ; then
melunko@47
 10321
      lt_int_apple_cc_single_mod=no
melunko@47
 10322
      output_verbose_link_cmd='echo'
melunko@47
 10323
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
melunko@47
 10324
       lt_int_apple_cc_single_mod=yes
melunko@47
 10325
      fi
melunko@47
 10326
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
melunko@47
 10327
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
melunko@47
 10328
      else
melunko@47
 10329
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
melunko@47
 10330
        fi
melunko@47
 10331
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
melunko@47
 10332
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
melunko@47
 10333
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
melunko@47
 10334
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
 10335
          else
melunko@47
 10336
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
 10337
          fi
melunko@47
 10338
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
 10339
      else
melunko@47
 10340
      case $cc_basename in
melunko@47
 10341
        xlc*)
melunko@47
 10342
         output_verbose_link_cmd='echo'
melunko@47
 10343
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
melunko@47
 10344
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
melunko@47
 10345
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
melunko@47
 10346
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
 10347
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
 10348
          ;;
melunko@47
 10349
       *)
melunko@47
 10350
         ld_shlibs_CXX=no
melunko@47
 10351
          ;;
melunko@47
 10352
      esac
melunko@47
 10353
      fi
melunko@47
 10354
        ;;
melunko@47
 10355
melunko@47
 10356
  dgux*)
melunko@47
 10357
    case $cc_basename in
melunko@47
 10358
      ec++*)
melunko@47
 10359
	# FIXME: insert proper C++ library support
melunko@47
 10360
	ld_shlibs_CXX=no
melunko@47
 10361
	;;
melunko@47
 10362
      ghcx*)
melunko@47
 10363
	# Green Hills C++ Compiler
melunko@47
 10364
	# FIXME: insert proper C++ library support
melunko@47
 10365
	ld_shlibs_CXX=no
melunko@47
 10366
	;;
melunko@47
 10367
      *)
melunko@47
 10368
	# FIXME: insert proper C++ library support
melunko@47
 10369
	ld_shlibs_CXX=no
melunko@47
 10370
	;;
melunko@47
 10371
    esac
melunko@47
 10372
    ;;
melunko@47
 10373
  freebsd[12]*)
melunko@47
 10374
    # C++ shared libraries reported to be fairly broken before switch to ELF
melunko@47
 10375
    ld_shlibs_CXX=no
melunko@47
 10376
    ;;
melunko@47
 10377
  freebsd-elf*)
melunko@47
 10378
    archive_cmds_need_lc_CXX=no
melunko@47
 10379
    ;;
melunko@47
 10380
  freebsd* | kfreebsd*-gnu | dragonfly*)
melunko@47
 10381
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
melunko@47
 10382
    # conventions
melunko@47
 10383
    ld_shlibs_CXX=yes
melunko@47
 10384
    ;;
melunko@47
 10385
  gnu*)
melunko@47
 10386
    ;;
melunko@47
 10387
  hpux9*)
melunko@47
 10388
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
melunko@47
 10389
    hardcode_libdir_separator_CXX=:
melunko@47
 10390
    export_dynamic_flag_spec_CXX='${wl}-E'
melunko@47
 10391
    hardcode_direct_CXX=yes
melunko@47
 10392
    hardcode_minus_L_CXX=yes # Not in the search PATH,
melunko@47
 10393
				# but as the default
melunko@47
 10394
				# location of the library.
melunko@47
 10395
melunko@47
 10396
    case $cc_basename in
melunko@47
 10397
    CC*)
melunko@47
 10398
      # FIXME: insert proper C++ library support
melunko@47
 10399
      ld_shlibs_CXX=no
melunko@47
 10400
      ;;
melunko@47
 10401
    aCC*)
melunko@47
 10402
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
melunko@47
 10403
      # Commands to make compiler produce verbose output that lists
melunko@47
 10404
      # what "hidden" libraries, object files and flags are used when
melunko@47
 10405
      # linking a shared library.
melunko@47
 10406
      #
melunko@47
 10407
      # There doesn't appear to be a way to prevent this compiler from
melunko@47
 10408
      # explicitly linking system object files so we need to strip them
melunko@47
 10409
      # from the output so that they don't get included in the library
melunko@47
 10410
      # dependencies.
melunko@47
 10411
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
melunko@47
 10412
      ;;
melunko@47
 10413
    *)
melunko@47
 10414
      if test "$GXX" = yes; then
melunko@47
 10415
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
melunko@47
 10416
      else
melunko@47
 10417
        # FIXME: insert proper C++ library support
melunko@47
 10418
        ld_shlibs_CXX=no
melunko@47
 10419
      fi
melunko@47
 10420
      ;;
melunko@47
 10421
    esac
melunko@47
 10422
    ;;
melunko@47
 10423
  hpux10*|hpux11*)
melunko@47
 10424
    if test $with_gnu_ld = no; then
melunko@47
 10425
      case $host_cpu in
melunko@47
 10426
      hppa*64*)
melunko@47
 10427
	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
melunko@47
 10428
	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
melunko@47
 10429
	hardcode_libdir_separator_CXX=:
melunko@47
 10430
        ;;
melunko@47
 10431
      ia64*)
melunko@47
 10432
	hardcode_libdir_flag_spec_CXX='-L$libdir'
melunko@47
 10433
        ;;
melunko@47
 10434
      *)
melunko@47
 10435
	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
melunko@47
 10436
	hardcode_libdir_separator_CXX=:
melunko@47
 10437
	export_dynamic_flag_spec_CXX='${wl}-E'
melunko@47
 10438
        ;;
melunko@47
 10439
      esac
melunko@47
 10440
    fi
melunko@47
 10441
    case $host_cpu in
melunko@47
 10442
    hppa*64*)
melunko@47
 10443
      hardcode_direct_CXX=no
melunko@47
 10444
      hardcode_shlibpath_var_CXX=no
melunko@47
 10445
      ;;
melunko@47
 10446
    ia64*)
melunko@47
 10447
      hardcode_direct_CXX=no
melunko@47
 10448
      hardcode_shlibpath_var_CXX=no
melunko@47
 10449
      hardcode_minus_L_CXX=yes # Not in the search PATH,
melunko@47
 10450
					      # but as the default
melunko@47
 10451
					      # location of the library.
melunko@47
 10452
      ;;
melunko@47
 10453
    *)
melunko@47
 10454
      hardcode_direct_CXX=yes
melunko@47
 10455
      hardcode_minus_L_CXX=yes # Not in the search PATH,
melunko@47
 10456
					      # but as the default
melunko@47
 10457
					      # location of the library.
melunko@47
 10458
      ;;
melunko@47
 10459
    esac
melunko@47
 10460
melunko@47
 10461
    case $cc_basename in
melunko@47
 10462
      CC*)
melunko@47
 10463
	# FIXME: insert proper C++ library support
melunko@47
 10464
	ld_shlibs_CXX=no
melunko@47
 10465
	;;
melunko@47
 10466
      aCC*)
melunko@47
 10467
	case $host_cpu in
melunko@47
 10468
	hppa*64*|ia64*)
melunko@47
 10469
	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
melunko@47
 10470
	  ;;
melunko@47
 10471
	*)
melunko@47
 10472
	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
melunko@47
 10473
	  ;;
melunko@47
 10474
	esac
melunko@47
 10475
	# Commands to make compiler produce verbose output that lists
melunko@47
 10476
	# what "hidden" libraries, object files and flags are used when
melunko@47
 10477
	# linking a shared library.
melunko@47
 10478
	#
melunko@47
 10479
	# There doesn't appear to be a way to prevent this compiler from
melunko@47
 10480
	# explicitly linking system object files so we need to strip them
melunko@47
 10481
	# from the output so that they don't get included in the library
melunko@47
 10482
	# dependencies.
melunko@47
 10483
	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
melunko@47
 10484
	;;
melunko@47
 10485
      *)
melunko@47
 10486
	if test "$GXX" = yes; then
melunko@47
 10487
	  if test $with_gnu_ld = no; then
melunko@47
 10488
	    case $host_cpu in
melunko@47
 10489
	    ia64*|hppa*64*)
melunko@47
 10490
	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
melunko@47
 10491
	      ;;
melunko@47
 10492
	    *)
melunko@47
 10493
	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
melunko@47
 10494
	      ;;
melunko@47
 10495
	    esac
melunko@47
 10496
	  fi
melunko@47
 10497
	else
melunko@47
 10498
	  # FIXME: insert proper C++ library support
melunko@47
 10499
	  ld_shlibs_CXX=no
melunko@47
 10500
	fi
melunko@47
 10501
	;;
melunko@47
 10502
    esac
melunko@47
 10503
    ;;
melunko@47
 10504
  irix5* | irix6*)
melunko@47
 10505
    case $cc_basename in
melunko@47
 10506
      CC*)
melunko@47
 10507
	# SGI C++
melunko@47
 10508
	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
melunko@47
 10509
melunko@47
 10510
	# Archives containing C++ object files must be created using
melunko@47
 10511
	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
melunko@47
 10512
	# necessary to make sure instantiated templates are included
melunko@47
 10513
	# in the archive.
melunko@47
 10514
	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
melunko@47
 10515
	;;
melunko@47
 10516
      *)
melunko@47
 10517
	if test "$GXX" = yes; then
melunko@47
 10518
	  if test "$with_gnu_ld" = no; then
melunko@47
 10519
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
melunko@47
 10520
	  else
melunko@47
 10521
	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
melunko@47
 10522
	  fi
melunko@47
 10523
	fi
melunko@47
 10524
	link_all_deplibs_CXX=yes
melunko@47
 10525
	;;
melunko@47
 10526
    esac
melunko@47
 10527
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
melunko@47
 10528
    hardcode_libdir_separator_CXX=:
melunko@47
 10529
    ;;
melunko@47
 10530
  linux*)
melunko@47
 10531
    case $cc_basename in
melunko@47
 10532
      KCC*)
melunko@47
 10533
	# Kuck and Associates, Inc. (KAI) C++ Compiler
melunko@47
 10534
melunko@47
 10535
	# KCC will only create a shared library if the output file
melunko@47
 10536
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
melunko@47
 10537
	# to its proper name (with version) after linking.
melunko@47
 10538
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
melunko@47
 10539
	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
melunko@47
 10540
	# Commands to make compiler produce verbose output that lists
melunko@47
 10541
	# what "hidden" libraries, object files and flags are used when
melunko@47
 10542
	# linking a shared library.
melunko@47
 10543
	#
melunko@47
 10544
	# There doesn't appear to be a way to prevent this compiler from
melunko@47
 10545
	# explicitly linking system object files so we need to strip them
melunko@47
 10546
	# from the output so that they don't get included in the library
melunko@47
 10547
	# dependencies.
melunko@47
 10548
	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
melunko@47
 10549
melunko@47
 10550
	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
melunko@47
 10551
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
melunko@47
 10552
melunko@47
 10553
	# Archives containing C++ object files must be created using
melunko@47
 10554
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
melunko@47
 10555
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
melunko@47
 10556
	;;
melunko@47
 10557
      icpc*)
melunko@47
 10558
	# Intel C++
melunko@47
 10559
	with_gnu_ld=yes
melunko@47
 10560
	# version 8.0 and above of icpc choke on multiply defined symbols
melunko@47
 10561
	# if we add $predep_objects and $postdep_objects, however 7.1 and
melunko@47
 10562
	# earlier do not add the objects themselves.
melunko@47
 10563
	case `$CC -V 2>&1` in
melunko@47
 10564
	*"Version 7."*)
melunko@47
 10565
  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
 10566
  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
melunko@47
 10567
	  ;;
melunko@47
 10568
	*)  # Version 8.0 or newer
melunko@47
 10569
	  tmp_idyn=
melunko@47
 10570
	  case $host_cpu in
melunko@47
 10571
	    ia64*) tmp_idyn=' -i_dynamic';;
melunko@47
 10572
	  esac
melunko@47
 10573
  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
 10574
	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
melunko@47
 10575
	  ;;
melunko@47
 10576
	esac
melunko@47
 10577
	archive_cmds_need_lc_CXX=no
melunko@47
 10578
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
melunko@47
 10579
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
melunko@47
 10580
	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
melunko@47
 10581
	;;
melunko@47
 10582
      pgCC*)
melunko@47
 10583
        # Portland Group C++ compiler
melunko@47
 10584
	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
melunko@47
 10585
  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
melunko@47
 10586
melunko@47
 10587
	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
melunko@47
 10588
	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
melunko@47
 10589
	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
melunko@47
 10590
        ;;
melunko@47
 10591
      cxx*)
melunko@47
 10592
	# Compaq C++
melunko@47
 10593
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
 10594
	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
melunko@47
 10595
melunko@47
 10596
	runpath_var=LD_RUN_PATH
melunko@47
 10597
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
melunko@47
 10598
	hardcode_libdir_separator_CXX=:
melunko@47
 10599
melunko@47
 10600
	# Commands to make compiler produce verbose output that lists
melunko@47
 10601
	# what "hidden" libraries, object files and flags are used when
melunko@47
 10602
	# linking a shared library.
melunko@47
 10603
	#
melunko@47
 10604
	# There doesn't appear to be a way to prevent this compiler from
melunko@47
 10605
	# explicitly linking system object files so we need to strip them
melunko@47
 10606
	# from the output so that they don't get included in the library
melunko@47
 10607
	# dependencies.
melunko@47
 10608
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
melunko@47
 10609
	;;
melunko@47
 10610
    esac
melunko@47
 10611
    ;;
melunko@47
 10612
  lynxos*)
melunko@47
 10613
    # FIXME: insert proper C++ library support
melunko@47
 10614
    ld_shlibs_CXX=no
melunko@47
 10615
    ;;
melunko@47
 10616
  m88k*)
melunko@47
 10617
    # FIXME: insert proper C++ library support
melunko@47
 10618
    ld_shlibs_CXX=no
melunko@47
 10619
    ;;
melunko@47
 10620
  mvs*)
melunko@47
 10621
    case $cc_basename in
melunko@47
 10622
      cxx*)
melunko@47
 10623
	# FIXME: insert proper C++ library support
melunko@47
 10624
	ld_shlibs_CXX=no
melunko@47
 10625
	;;
melunko@47
 10626
      *)
melunko@47
 10627
	# FIXME: insert proper C++ library support
melunko@47
 10628
	ld_shlibs_CXX=no
melunko@47
 10629
	;;
melunko@47
 10630
    esac
melunko@47
 10631
    ;;
melunko@47
 10632
  netbsd*)
melunko@47
 10633
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
melunko@47
 10634
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
melunko@47
 10635
      wlarc=
melunko@47
 10636
      hardcode_libdir_flag_spec_CXX='-R$libdir'
melunko@47
 10637
      hardcode_direct_CXX=yes
melunko@47
 10638
      hardcode_shlibpath_var_CXX=no
melunko@47
 10639
    fi
melunko@47
 10640
    # Workaround some broken pre-1.5 toolchains
melunko@47
 10641
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
melunko@47
 10642
    ;;
melunko@47
 10643
  openbsd2*)
melunko@47
 10644
    # C++ shared libraries are fairly broken
melunko@47
 10645
    ld_shlibs_CXX=no
melunko@47
 10646
    ;;
melunko@47
 10647
  openbsd*)
melunko@47
 10648
    hardcode_direct_CXX=yes
melunko@47
 10649
    hardcode_shlibpath_var_CXX=no
melunko@47
 10650
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
melunko@47
 10651
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
melunko@47
 10652
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
melunko@47
 10653
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
melunko@47
 10654
      export_dynamic_flag_spec_CXX='${wl}-E'
melunko@47
 10655
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
melunko@47
 10656
    fi
melunko@47
 10657
    output_verbose_link_cmd='echo'
melunko@47
 10658
    ;;
melunko@47
 10659
  osf3*)
melunko@47
 10660
    case $cc_basename in
melunko@47
 10661
      KCC*)
melunko@47
 10662
	# Kuck and Associates, Inc. (KAI) C++ Compiler
melunko@47
 10663
melunko@47
 10664
	# KCC will only create a shared library if the output file
melunko@47
 10665
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
melunko@47
 10666
	# to its proper name (with version) after linking.
melunko@47
 10667
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
melunko@47
 10668
melunko@47
 10669
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
melunko@47
 10670
	hardcode_libdir_separator_CXX=:
melunko@47
 10671
melunko@47
 10672
	# Archives containing C++ object files must be created using
melunko@47
 10673
	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
melunko@47
 10674
	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
melunko@47
 10675
melunko@47
 10676
	;;
melunko@47
 10677
      RCC*)
melunko@47
 10678
	# Rational C++ 2.4.1
melunko@47
 10679
	# FIXME: insert proper C++ library support
melunko@47
 10680
	ld_shlibs_CXX=no
melunko@47
 10681
	;;
melunko@47
 10682
      cxx*)
melunko@47
 10683
	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
melunko@47
 10684
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
melunko@47
 10685
melunko@47
 10686
	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
melunko@47
 10687
	hardcode_libdir_separator_CXX=:
melunko@47
 10688
melunko@47
 10689
	# Commands to make compiler produce verbose output that lists
melunko@47
 10690
	# what "hidden" libraries, object files and flags are used when
melunko@47
 10691
	# linking a shared library.
melunko@47
 10692
	#
melunko@47
 10693
	# There doesn't appear to be a way to prevent this compiler from
melunko@47
 10694
	# explicitly linking system object files so we need to strip them
melunko@47
 10695
	# from the output so that they don't get included in the library
melunko@47
 10696
	# dependencies.
melunko@47
 10697
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
melunko@47
 10698
	;;
melunko@47
 10699
      *)
melunko@47
 10700
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
melunko@47
 10701
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
melunko@47
 10702
	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
melunko@47
 10703
melunko@47
 10704
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
melunko@47
 10705
	  hardcode_libdir_separator_CXX=:
melunko@47
 10706
melunko@47
 10707
	  # Commands to make compiler produce verbose output that lists
melunko@47
 10708
	  # what "hidden" libraries, object files and flags are used when
melunko@47
 10709
	  # linking a shared library.
melunko@47
 10710
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
melunko@47
 10711
melunko@47
 10712
	else
melunko@47
 10713
	  # FIXME: insert proper C++ library support
melunko@47
 10714
	  ld_shlibs_CXX=no
melunko@47
 10715
	fi
melunko@47
 10716
	;;
melunko@47
 10717
    esac
melunko@47
 10718
    ;;
melunko@47
 10719
  osf4* | osf5*)
melunko@47
 10720
    case $cc_basename in
melunko@47
 10721
      KCC*)
melunko@47
 10722
	# Kuck and Associates, Inc. (KAI) C++ Compiler
melunko@47
 10723
melunko@47
 10724
	# KCC will only create a shared library if the output file
melunko@47
 10725
	# ends with ".so" (or ".sl" for HP-UX), so rename the library
melunko@47
 10726
	# to its proper name (with version) after linking.
melunko@47
 10727
	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
melunko@47
 10728
melunko@47
 10729
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
melunko@47
 10730
	hardcode_libdir_separator_CXX=:
melunko@47
 10731
melunko@47
 10732
	# Archives containing C++ object files must be created using
melunko@47
 10733
	# the KAI C++ compiler.
melunko@47
 10734
	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
melunko@47
 10735
	;;
melunko@47
 10736
      RCC*)
melunko@47
 10737
	# Rational C++ 2.4.1
melunko@47
 10738
	# FIXME: insert proper C++ library support
melunko@47
 10739
	ld_shlibs_CXX=no
melunko@47
 10740
	;;
melunko@47
 10741
      cxx*)
melunko@47
 10742
	allow_undefined_flag_CXX=' -expect_unresolved \*'
melunko@47
 10743
	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
melunko@47
 10744
	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
melunko@47
 10745
	  echo "-hidden">> $lib.exp~
melunko@47
 10746
	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
melunko@47
 10747
	  $rm $lib.exp'
melunko@47
 10748
melunko@47
 10749
	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
melunko@47
 10750
	hardcode_libdir_separator_CXX=:
melunko@47
 10751
melunko@47
 10752
	# Commands to make compiler produce verbose output that lists
melunko@47
 10753
	# what "hidden" libraries, object files and flags are used when
melunko@47
 10754
	# linking a shared library.
melunko@47
 10755
	#
melunko@47
 10756
	# There doesn't appear to be a way to prevent this compiler from
melunko@47
 10757
	# explicitly linking system object files so we need to strip them
melunko@47
 10758
	# from the output so that they don't get included in the library
melunko@47
 10759
	# dependencies.
melunko@47
 10760
	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
melunko@47
 10761
	;;
melunko@47
 10762
      *)
melunko@47
 10763
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
melunko@47
 10764
	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
melunko@47
 10765
	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
melunko@47
 10766
melunko@47
 10767
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
melunko@47
 10768
	  hardcode_libdir_separator_CXX=:
melunko@47
 10769
melunko@47
 10770
	  # Commands to make compiler produce verbose output that lists
melunko@47
 10771
	  # what "hidden" libraries, object files and flags are used when
melunko@47
 10772
	  # linking a shared library.
melunko@47
 10773
	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
melunko@47
 10774
melunko@47
 10775
	else
melunko@47
 10776
	  # FIXME: insert proper C++ library support
melunko@47
 10777
	  ld_shlibs_CXX=no
melunko@47
 10778
	fi
melunko@47
 10779
	;;
melunko@47
 10780
    esac
melunko@47
 10781
    ;;
melunko@47
 10782
  psos*)
melunko@47
 10783
    # FIXME: insert proper C++ library support
melunko@47
 10784
    ld_shlibs_CXX=no
melunko@47
 10785
    ;;
melunko@47
 10786
  sco*)
melunko@47
 10787
    archive_cmds_need_lc_CXX=no
melunko@47
 10788
    case $cc_basename in
melunko@47
 10789
      CC*)
melunko@47
 10790
	# FIXME: insert proper C++ library support
melunko@47
 10791
	ld_shlibs_CXX=no
melunko@47
 10792
	;;
melunko@47
 10793
      *)
melunko@47
 10794
	# FIXME: insert proper C++ library support
melunko@47
 10795
	ld_shlibs_CXX=no
melunko@47
 10796
	;;
melunko@47
 10797
    esac
melunko@47
 10798
    ;;
melunko@47
 10799
  sunos4*)
melunko@47
 10800
    case $cc_basename in
melunko@47
 10801
      CC*)
melunko@47
 10802
	# Sun C++ 4.x
melunko@47
 10803
	# FIXME: insert proper C++ library support
melunko@47
 10804
	ld_shlibs_CXX=no
melunko@47
 10805
	;;
melunko@47
 10806
      lcc*)
melunko@47
 10807
	# Lucid
melunko@47
 10808
	# FIXME: insert proper C++ library support
melunko@47
 10809
	ld_shlibs_CXX=no
melunko@47
 10810
	;;
melunko@47
 10811
      *)
melunko@47
 10812
	# FIXME: insert proper C++ library support
melunko@47
 10813
	ld_shlibs_CXX=no
melunko@47
 10814
	;;
melunko@47
 10815
    esac
melunko@47
 10816
    ;;
melunko@47
 10817
  solaris*)
melunko@47
 10818
    case $cc_basename in
melunko@47
 10819
      CC*)
melunko@47
 10820
	# Sun C++ 4.2, 5.x and Centerline C++
melunko@47
 10821
        archive_cmds_need_lc_CXX=yes
melunko@47
 10822
	no_undefined_flag_CXX=' -zdefs'
melunko@47
 10823
	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
melunko@47
 10824
	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
melunko@47
 10825
	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
melunko@47
 10826
melunko@47
 10827
	hardcode_libdir_flag_spec_CXX='-R$libdir'
melunko@47
 10828
	hardcode_shlibpath_var_CXX=no
melunko@47
 10829
	case $host_os in
melunko@47
 10830
	  solaris2.[0-5] | solaris2.[0-5].*) ;;
melunko@47
 10831
	  *)
melunko@47
 10832
	    # The C++ compiler is used as linker so we must use $wl
melunko@47
 10833
	    # flag to pass the commands to the underlying system
melunko@47
 10834
	    # linker. We must also pass each convience library through
melunko@47
 10835
	    # to the system linker between allextract/defaultextract.
melunko@47
 10836
	    # The C++ compiler will combine linker options so we
melunko@47
 10837
	    # cannot just pass the convience library names through
melunko@47
 10838
	    # without $wl.
melunko@47
 10839
	    # Supported since Solaris 2.6 (maybe 2.5.1?)
melunko@47
 10840
	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
melunko@47
 10841
	    ;;
melunko@47
 10842
	esac
melunko@47
 10843
	link_all_deplibs_CXX=yes
melunko@47
 10844
melunko@47
 10845
	output_verbose_link_cmd='echo'
melunko@47
 10846
melunko@47
 10847
	# Archives containing C++ object files must be created using
melunko@47
 10848
	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
melunko@47
 10849
	# necessary to make sure instantiated templates are included
melunko@47
 10850
	# in the archive.
melunko@47
 10851
	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
melunko@47
 10852
	;;
melunko@47
 10853
      gcx*)
melunko@47
 10854
	# Green Hills C++ Compiler
melunko@47
 10855
	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
melunko@47
 10856
melunko@47
 10857
	# The C++ compiler must be used to create the archive.
melunko@47
 10858
	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
melunko@47
 10859
	;;
melunko@47
 10860
      *)
melunko@47
 10861
	# GNU C++ compiler with Solaris linker
melunko@47
 10862
	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
melunko@47
 10863
	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
melunko@47
 10864
	  if $CC --version | grep -v '^2\.7' > /dev/null; then
melunko@47
 10865
	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
melunko@47
 10866
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
melunko@47
 10867
		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
melunko@47
 10868
melunko@47
 10869
	    # Commands to make compiler produce verbose output that lists
melunko@47
 10870
	    # what "hidden" libraries, object files and flags are used when
melunko@47
 10871
	    # linking a shared library.
melunko@47
 10872
	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
melunko@47
 10873
	  else
melunko@47
 10874
	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
melunko@47
 10875
	    # platform.
melunko@47
 10876
	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
melunko@47
 10877
	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
melunko@47
 10878
		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
melunko@47
 10879
melunko@47
 10880
	    # Commands to make compiler produce verbose output that lists
melunko@47
 10881
	    # what "hidden" libraries, object files and flags are used when
melunko@47
 10882
	    # linking a shared library.
melunko@47
 10883
	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
melunko@47
 10884
	  fi
melunko@47
 10885
melunko@47
 10886
	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
melunko@47
 10887
	fi
melunko@47
 10888
	;;
melunko@47
 10889
    esac
melunko@47
 10890
    ;;
melunko@47
 10891
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
melunko@47
 10892
    archive_cmds_need_lc_CXX=no
melunko@47
 10893
    ;;
melunko@47
 10894
  tandem*)
melunko@47
 10895
    case $cc_basename in
melunko@47
 10896
      NCC*)
melunko@47
 10897
	# NonStop-UX NCC 3.20
melunko@47
 10898
	# FIXME: insert proper C++ library support
melunko@47
 10899
	ld_shlibs_CXX=no
melunko@47
 10900
	;;
melunko@47
 10901
      *)
melunko@47
 10902
	# FIXME: insert proper C++ library support
melunko@47
 10903
	ld_shlibs_CXX=no
melunko@47
 10904
	;;
melunko@47
 10905
    esac
melunko@47
 10906
    ;;
melunko@47
 10907
  vxworks*)
melunko@47
 10908
    # FIXME: insert proper C++ library support
melunko@47
 10909
    ld_shlibs_CXX=no
melunko@47
 10910
    ;;
melunko@47
 10911
  *)
melunko@47
 10912
    # FIXME: insert proper C++ library support
melunko@47
 10913
    ld_shlibs_CXX=no
melunko@47
 10914
    ;;
melunko@47
 10915
esac
melunko@47
 10916
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
melunko@47
 10917
echo "${ECHO_T}$ld_shlibs_CXX" >&6
melunko@47
 10918
test "$ld_shlibs_CXX" = no && can_build_shared=no
melunko@47
 10919
melunko@47
 10920
GCC_CXX="$GXX"
melunko@47
 10921
LD_CXX="$LD"
melunko@47
 10922
melunko@47
 10923
melunko@47
 10924
cat > conftest.$ac_ext <<EOF
melunko@47
 10925
class Foo
melunko@47
 10926
{
melunko@47
 10927
public:
melunko@47
 10928
  Foo (void) { a = 0; }
melunko@47
 10929
private:
melunko@47
 10930
  int a;
melunko@47
 10931
};
melunko@47
 10932
EOF
melunko@47
 10933
melunko@47
 10934
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 10935
  (eval $ac_compile) 2>&5
melunko@47
 10936
  ac_status=$?
melunko@47
 10937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 10938
  (exit $ac_status); }; then
melunko@47
 10939
  # Parse the compiler output and extract the necessary
melunko@47
 10940
  # objects, libraries and library flags.
melunko@47
 10941
melunko@47
 10942
  # Sentinel used to keep track of whether or not we are before
melunko@47
 10943
  # the conftest object file.
melunko@47
 10944
  pre_test_object_deps_done=no
melunko@47
 10945
melunko@47
 10946
  # The `*' in the case matches for architectures that use `case' in
melunko@47
 10947
  # $output_verbose_cmd can trigger glob expansion during the loop
melunko@47
 10948
  # eval without this substitution.
melunko@47
 10949
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
melunko@47
 10950
melunko@47
 10951
  for p in `eval $output_verbose_link_cmd`; do
melunko@47
 10952
    case $p in
melunko@47
 10953
melunko@47
 10954
    -L* | -R* | -l*)
melunko@47
 10955
       # Some compilers place space between "-{L,R}" and the path.
melunko@47
 10956
       # Remove the space.
melunko@47
 10957
       if test $p = "-L" \
melunko@47
 10958
	  || test $p = "-R"; then
melunko@47
 10959
	 prev=$p
melunko@47
 10960
	 continue
melunko@47
 10961
       else
melunko@47
 10962
	 prev=
melunko@47
 10963
       fi
melunko@47
 10964
melunko@47
 10965
       if test "$pre_test_object_deps_done" = no; then
melunko@47
 10966
	 case $p in
melunko@47
 10967
	 -L* | -R*)
melunko@47
 10968
	   # Internal compiler library paths should come after those
melunko@47
 10969
	   # provided the user.  The postdeps already come after the
melunko@47
 10970
	   # user supplied libs so there is no need to process them.
melunko@47
 10971
	   if test -z "$compiler_lib_search_path_CXX"; then
melunko@47
 10972
	     compiler_lib_search_path_CXX="${prev}${p}"
melunko@47
 10973
	   else
melunko@47
 10974
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
melunko@47
 10975
	   fi
melunko@47
 10976
	   ;;
melunko@47
 10977
	 # The "-l" case would never come before the object being
melunko@47
 10978
	 # linked, so don't bother handling this case.
melunko@47
 10979
	 esac
melunko@47
 10980
       else
melunko@47
 10981
	 if test -z "$postdeps_CXX"; then
melunko@47
 10982
	   postdeps_CXX="${prev}${p}"
melunko@47
 10983
	 else
melunko@47
 10984
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
melunko@47
 10985
	 fi
melunko@47
 10986
       fi
melunko@47
 10987
       ;;
melunko@47
 10988
melunko@47
 10989
    *.$objext)
melunko@47
 10990
       # This assumes that the test object file only shows up
melunko@47
 10991
       # once in the compiler output.
melunko@47
 10992
       if test "$p" = "conftest.$objext"; then
melunko@47
 10993
	 pre_test_object_deps_done=yes
melunko@47
 10994
	 continue
melunko@47
 10995
       fi
melunko@47
 10996
melunko@47
 10997
       if test "$pre_test_object_deps_done" = no; then
melunko@47
 10998
	 if test -z "$predep_objects_CXX"; then
melunko@47
 10999
	   predep_objects_CXX="$p"
melunko@47
 11000
	 else
melunko@47
 11001
	   predep_objects_CXX="$predep_objects_CXX $p"
melunko@47
 11002
	 fi
melunko@47
 11003
       else
melunko@47
 11004
	 if test -z "$postdep_objects_CXX"; then
melunko@47
 11005
	   postdep_objects_CXX="$p"
melunko@47
 11006
	 else
melunko@47
 11007
	   postdep_objects_CXX="$postdep_objects_CXX $p"
melunko@47
 11008
	 fi
melunko@47
 11009
       fi
melunko@47
 11010
       ;;
melunko@47
 11011
melunko@47
 11012
    *) ;; # Ignore the rest.
melunko@47
 11013
melunko@47
 11014
    esac
melunko@47
 11015
  done
melunko@47
 11016
melunko@47
 11017
  # Clean up.
melunko@47
 11018
  rm -f a.out a.exe
melunko@47
 11019
else
melunko@47
 11020
  echo "libtool.m4: error: problem compiling CXX test program"
melunko@47
 11021
fi
melunko@47
 11022
melunko@47
 11023
$rm -f confest.$objext
melunko@47
 11024
melunko@47
 11025
# PORTME: override above test on systems where it is broken
melunko@47
 11026
case $host_os in
melunko@47
 11027
solaris*)
melunko@47
 11028
  case $cc_basename in
melunko@47
 11029
  CC*)
melunko@47
 11030
    # Adding this requires a known-good setup of shared libraries for
melunko@47
 11031
    # Sun compiler versions before 5.6, else PIC objects from an old
melunko@47
 11032
    # archive will be linked into the output, leading to subtle bugs.
melunko@47
 11033
    postdeps_CXX='-lCstd -lCrun'
melunko@47
 11034
    ;;
melunko@47
 11035
  esac
melunko@47
 11036
esac
melunko@47
 11037
melunko@47
 11038
melunko@47
 11039
case " $postdeps_CXX " in
melunko@47
 11040
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
melunko@47
 11041
esac
melunko@47
 11042
melunko@47
 11043
lt_prog_compiler_wl_CXX=
melunko@47
 11044
lt_prog_compiler_pic_CXX=
melunko@47
 11045
lt_prog_compiler_static_CXX=
melunko@47
 11046
melunko@47
 11047
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
melunko@47
 11048
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
melunko@47
 11049
 
melunko@47
 11050
  # C++ specific cases for pic, static, wl, etc.
melunko@47
 11051
  if test "$GXX" = yes; then
melunko@47
 11052
    lt_prog_compiler_wl_CXX='-Wl,'
melunko@47
 11053
    lt_prog_compiler_static_CXX='-static'
melunko@47
 11054
melunko@47
 11055
    case $host_os in
melunko@47
 11056
    aix*)
melunko@47
 11057
      # All AIX code is PIC.
melunko@47
 11058
      if test "$host_cpu" = ia64; then
melunko@47
 11059
	# AIX 5 now supports IA64 processor
melunko@47
 11060
	lt_prog_compiler_static_CXX='-Bstatic'
melunko@47
 11061
      fi
melunko@47
 11062
      ;;
melunko@47
 11063
    amigaos*)
melunko@47
 11064
      # FIXME: we need at least 68020 code to build shared libraries, but
melunko@47
 11065
      # adding the `-m68020' flag to GCC prevents building anything better,
melunko@47
 11066
      # like `-m68040'.
melunko@47
 11067
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
melunko@47
 11068
      ;;
melunko@47
 11069
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
melunko@47
 11070
      # PIC is the default for these OSes.
melunko@47
 11071
      ;;
melunko@47
 11072
    mingw* | os2* | pw32*)
melunko@47
 11073
      # This hack is so that the source file can tell whether it is being
melunko@47
 11074
      # built for inclusion in a dll (and should export symbols for example).
melunko@47
 11075
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
melunko@47
 11076
      ;;
melunko@47
 11077
    darwin* | rhapsody*)
melunko@47
 11078
      # PIC is the default on this platform
melunko@47
 11079
      # Common symbols not allowed in MH_DYLIB files
melunko@47
 11080
      lt_prog_compiler_pic_CXX='-fno-common'
melunko@47
 11081
      ;;
melunko@47
 11082
    *djgpp*)
melunko@47
 11083
      # DJGPP does not support shared libraries at all
melunko@47
 11084
      lt_prog_compiler_pic_CXX=
melunko@47
 11085
      ;;
melunko@47
 11086
    sysv4*MP*)
melunko@47
 11087
      if test -d /usr/nec; then
melunko@47
 11088
	lt_prog_compiler_pic_CXX=-Kconform_pic
melunko@47
 11089
      fi
melunko@47
 11090
      ;;
melunko@47
 11091
    hpux*)
melunko@47
 11092
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
melunko@47
 11093
      # not for PA HP-UX.
melunko@47
 11094
      case $host_cpu in
melunko@47
 11095
      hppa*64*|ia64*)
melunko@47
 11096
	;;
melunko@47
 11097
      *)
melunko@47
 11098
	lt_prog_compiler_pic_CXX='-fPIC'
melunko@47
 11099
	;;
melunko@47
 11100
      esac
melunko@47
 11101
      ;;
melunko@47
 11102
    *)
melunko@47
 11103
      lt_prog_compiler_pic_CXX='-fPIC'
melunko@47
 11104
      ;;
melunko@47
 11105
    esac
melunko@47
 11106
  else
melunko@47
 11107
    case $host_os in
melunko@47
 11108
      aix4* | aix5*)
melunko@47
 11109
	# All AIX code is PIC.
melunko@47
 11110
	if test "$host_cpu" = ia64; then
melunko@47
 11111
	  # AIX 5 now supports IA64 processor
melunko@47
 11112
	  lt_prog_compiler_static_CXX='-Bstatic'
melunko@47
 11113
	else
melunko@47
 11114
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
melunko@47
 11115
	fi
melunko@47
 11116
	;;
melunko@47
 11117
      chorus*)
melunko@47
 11118
	case $cc_basename in
melunko@47
 11119
	cxch68*)
melunko@47
 11120
	  # Green Hills C++ Compiler
melunko@47
 11121
	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
melunko@47
 11122
	  ;;
melunko@47
 11123
	esac
melunko@47
 11124
	;;
melunko@47
 11125
       darwin*)
melunko@47
 11126
         # PIC is the default on this platform
melunko@47
 11127
         # Common symbols not allowed in MH_DYLIB files
melunko@47
 11128
         case $cc_basename in
melunko@47
 11129
           xlc*)
melunko@47
 11130
           lt_prog_compiler_pic_CXX='-qnocommon'
melunko@47
 11131
           lt_prog_compiler_wl_CXX='-Wl,'
melunko@47
 11132
           ;;
melunko@47
 11133
         esac
melunko@47
 11134
       ;;
melunko@47
 11135
      dgux*)
melunko@47
 11136
	case $cc_basename in
melunko@47
 11137
	  ec++*)
melunko@47
 11138
	    lt_prog_compiler_pic_CXX='-KPIC'
melunko@47
 11139
	    ;;
melunko@47
 11140
	  ghcx*)
melunko@47
 11141
	    # Green Hills C++ Compiler
melunko@47
 11142
	    lt_prog_compiler_pic_CXX='-pic'
melunko@47
 11143
	    ;;
melunko@47
 11144
	  *)
melunko@47
 11145
	    ;;
melunko@47
 11146
	esac
melunko@47
 11147
	;;
melunko@47
 11148
      freebsd* | kfreebsd*-gnu | dragonfly*)
melunko@47
 11149
	# FreeBSD uses GNU C++
melunko@47
 11150
	;;
melunko@47
 11151
      hpux9* | hpux10* | hpux11*)
melunko@47
 11152
	case $cc_basename in
melunko@47
 11153
	  CC*)
melunko@47
 11154
	    lt_prog_compiler_wl_CXX='-Wl,'
melunko@47
 11155
	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
melunko@47
 11156
	    if test "$host_cpu" != ia64; then
melunko@47
 11157
	      lt_prog_compiler_pic_CXX='+Z'
melunko@47
 11158
	    fi
melunko@47
 11159
	    ;;
melunko@47
 11160
	  aCC*)
melunko@47
 11161
	    lt_prog_compiler_wl_CXX='-Wl,'
melunko@47
 11162
	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
melunko@47
 11163
	    case $host_cpu in
melunko@47
 11164
	    hppa*64*|ia64*)
melunko@47
 11165
	      # +Z the default
melunko@47
 11166
	      ;;
melunko@47
 11167
	    *)
melunko@47
 11168
	      lt_prog_compiler_pic_CXX='+Z'
melunko@47
 11169
	      ;;
melunko@47
 11170
	    esac
melunko@47
 11171
	    ;;
melunko@47
 11172
	  *)
melunko@47
 11173
	    ;;
melunko@47
 11174
	esac
melunko@47
 11175
	;;
melunko@47
 11176
      irix5* | irix6* | nonstopux*)
melunko@47
 11177
	case $cc_basename in
melunko@47
 11178
	  CC*)
melunko@47
 11179
	    lt_prog_compiler_wl_CXX='-Wl,'
melunko@47
 11180
	    lt_prog_compiler_static_CXX='-non_shared'
melunko@47
 11181
	    # CC pic flag -KPIC is the default.
melunko@47
 11182
	    ;;
melunko@47
 11183
	  *)
melunko@47
 11184
	    ;;
melunko@47
 11185
	esac
melunko@47
 11186
	;;
melunko@47
 11187
      linux*)
melunko@47
 11188
	case $cc_basename in
melunko@47
 11189
	  KCC*)
melunko@47
 11190
	    # KAI C++ Compiler
melunko@47
 11191
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
melunko@47
 11192
	    lt_prog_compiler_pic_CXX='-fPIC'
melunko@47
 11193
	    ;;
melunko@47
 11194
	  icpc* | ecpc*)
melunko@47
 11195
	    # Intel C++
melunko@47
 11196
	    lt_prog_compiler_wl_CXX='-Wl,'
melunko@47
 11197
	    lt_prog_compiler_pic_CXX='-KPIC'
melunko@47
 11198
	    lt_prog_compiler_static_CXX='-static'
melunko@47
 11199
	    ;;
melunko@47
 11200
	  pgCC*)
melunko@47
 11201
	    # Portland Group C++ compiler.
melunko@47
 11202
	    lt_prog_compiler_wl_CXX='-Wl,'
melunko@47
 11203
	    lt_prog_compiler_pic_CXX='-fpic'
melunko@47
 11204
	    lt_prog_compiler_static_CXX='-Bstatic'
melunko@47
 11205
	    ;;
melunko@47
 11206
	  cxx*)
melunko@47
 11207
	    # Compaq C++
melunko@47
 11208
	    # Make sure the PIC flag is empty.  It appears that all Alpha
melunko@47
 11209
	    # Linux and Compaq Tru64 Unix objects are PIC.
melunko@47
 11210
	    lt_prog_compiler_pic_CXX=
melunko@47
 11211
	    lt_prog_compiler_static_CXX='-non_shared'
melunko@47
 11212
	    ;;
melunko@47
 11213
	  *)
melunko@47
 11214
	    ;;
melunko@47
 11215
	esac
melunko@47
 11216
	;;
melunko@47
 11217
      lynxos*)
melunko@47
 11218
	;;
melunko@47
 11219
      m88k*)
melunko@47
 11220
	;;
melunko@47
 11221
      mvs*)
melunko@47
 11222
	case $cc_basename in
melunko@47
 11223
	  cxx*)
melunko@47
 11224
	    lt_prog_compiler_pic_CXX='-W c,exportall'
melunko@47
 11225
	    ;;
melunko@47
 11226
	  *)
melunko@47
 11227
	    ;;
melunko@47
 11228
	esac
melunko@47
 11229
	;;
melunko@47
 11230
      netbsd*)
melunko@47
 11231
	;;
melunko@47
 11232
      osf3* | osf4* | osf5*)
melunko@47
 11233
	case $cc_basename in
melunko@47
 11234
	  KCC*)
melunko@47
 11235
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
melunko@47
 11236
	    ;;
melunko@47
 11237
	  RCC*)
melunko@47
 11238
	    # Rational C++ 2.4.1
melunko@47
 11239
	    lt_prog_compiler_pic_CXX='-pic'
melunko@47
 11240
	    ;;
melunko@47
 11241
	  cxx*)
melunko@47
 11242
	    # Digital/Compaq C++
melunko@47
 11243
	    lt_prog_compiler_wl_CXX='-Wl,'
melunko@47
 11244
	    # Make sure the PIC flag is empty.  It appears that all Alpha
melunko@47
 11245
	    # Linux and Compaq Tru64 Unix objects are PIC.
melunko@47
 11246
	    lt_prog_compiler_pic_CXX=
melunko@47
 11247
	    lt_prog_compiler_static_CXX='-non_shared'
melunko@47
 11248
	    ;;
melunko@47
 11249
	  *)
melunko@47
 11250
	    ;;
melunko@47
 11251
	esac
melunko@47
 11252
	;;
melunko@47
 11253
      psos*)
melunko@47
 11254
	;;
melunko@47
 11255
      sco*)
melunko@47
 11256
	case $cc_basename in
melunko@47
 11257
	  CC*)
melunko@47
 11258
	    lt_prog_compiler_pic_CXX='-fPIC'
melunko@47
 11259
	    ;;
melunko@47
 11260
	  *)
melunko@47
 11261
	    ;;
melunko@47
 11262
	esac
melunko@47
 11263
	;;
melunko@47
 11264
      solaris*)
melunko@47
 11265
	case $cc_basename in
melunko@47
 11266
	  CC*)
melunko@47
 11267
	    # Sun C++ 4.2, 5.x and Centerline C++
melunko@47
 11268
	    lt_prog_compiler_pic_CXX='-KPIC'
melunko@47
 11269
	    lt_prog_compiler_static_CXX='-Bstatic'
melunko@47
 11270
	    lt_prog_compiler_wl_CXX='-Qoption ld '
melunko@47
 11271
	    ;;
melunko@47
 11272
	  gcx*)
melunko@47
 11273
	    # Green Hills C++ Compiler
melunko@47
 11274
	    lt_prog_compiler_pic_CXX='-PIC'
melunko@47
 11275
	    ;;
melunko@47
 11276
	  *)
melunko@47
 11277
	    ;;
melunko@47
 11278
	esac
melunko@47
 11279
	;;
melunko@47
 11280
      sunos4*)
melunko@47
 11281
	case $cc_basename in
melunko@47
 11282
	  CC*)
melunko@47
 11283
	    # Sun C++ 4.x
melunko@47
 11284
	    lt_prog_compiler_pic_CXX='-pic'
melunko@47
 11285
	    lt_prog_compiler_static_CXX='-Bstatic'
melunko@47
 11286
	    ;;
melunko@47
 11287
	  lcc*)
melunko@47
 11288
	    # Lucid
melunko@47
 11289
	    lt_prog_compiler_pic_CXX='-pic'
melunko@47
 11290
	    ;;
melunko@47
 11291
	  *)
melunko@47
 11292
	    ;;
melunko@47
 11293
	esac
melunko@47
 11294
	;;
melunko@47
 11295
      tandem*)
melunko@47
 11296
	case $cc_basename in
melunko@47
 11297
	  NCC*)
melunko@47
 11298
	    # NonStop-UX NCC 3.20
melunko@47
 11299
	    lt_prog_compiler_pic_CXX='-KPIC'
melunko@47
 11300
	    ;;
melunko@47
 11301
	  *)
melunko@47
 11302
	    ;;
melunko@47
 11303
	esac
melunko@47
 11304
	;;
melunko@47
 11305
      unixware*)
melunko@47
 11306
	;;
melunko@47
 11307
      vxworks*)
melunko@47
 11308
	;;
melunko@47
 11309
      *)
melunko@47
 11310
	lt_prog_compiler_can_build_shared_CXX=no
melunko@47
 11311
	;;
melunko@47
 11312
    esac
melunko@47
 11313
  fi
melunko@47
 11314
melunko@47
 11315
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
melunko@47
 11316
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
melunko@47
 11317
melunko@47
 11318
#
melunko@47
 11319
# Check to make sure the PIC flag actually works.
melunko@47
 11320
#
melunko@47
 11321
if test -n "$lt_prog_compiler_pic_CXX"; then
melunko@47
 11322
  
melunko@47
 11323
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
melunko@47
 11324
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
melunko@47
 11325
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
melunko@47
 11326
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 11327
else
melunko@47
 11328
  lt_prog_compiler_pic_works_CXX=no
melunko@47
 11329
  ac_outfile=conftest.$ac_objext
melunko@47
 11330
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
melunko@47
 11331
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
melunko@47
 11332
   # Insert the option either (1) after the last *FLAGS variable, or
melunko@47
 11333
   # (2) before a word containing "conftest.", or (3) at the end.
melunko@47
 11334
   # Note that $ac_compile itself does not contain backslashes and begins
melunko@47
 11335
   # with a dollar sign (not a hyphen), so the echo should work correctly.
melunko@47
 11336
   # The option is referenced via a variable to avoid confusing sed.
melunko@47
 11337
   lt_compile=`echo "$ac_compile" | $SED \
melunko@47
 11338
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
melunko@47
 11339
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
melunko@47
 11340
   -e 's:$: $lt_compiler_flag:'`
melunko@47
 11341
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
melunko@47
 11342
   (eval "$lt_compile" 2>conftest.err)
melunko@47
 11343
   ac_status=$?
melunko@47
 11344
   cat conftest.err >&5
melunko@47
 11345
   echo "$as_me:__oline__: \$? = $ac_status" >&5
melunko@47
 11346
   if (exit $ac_status) && test -s "$ac_outfile"; then
melunko@47
 11347
     # The compiler can only warn and ignore the option if not recognized
melunko@47
 11348
     # So say no if there are warnings other than the usual output.
melunko@47
 11349
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
melunko@47
 11350
     $SED '/^$/d' conftest.err >conftest.er2
melunko@47
 11351
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
melunko@47
 11352
       lt_prog_compiler_pic_works_CXX=yes
melunko@47
 11353
     fi
melunko@47
 11354
   fi
melunko@47
 11355
   $rm conftest*
melunko@47
 11356
melunko@47
 11357
fi
melunko@47
 11358
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
melunko@47
 11359
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
melunko@47
 11360
melunko@47
 11361
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
melunko@47
 11362
    case $lt_prog_compiler_pic_CXX in
melunko@47
 11363
     "" | " "*) ;;
melunko@47
 11364
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
melunko@47
 11365
     esac
melunko@47
 11366
else
melunko@47
 11367
    lt_prog_compiler_pic_CXX=
melunko@47
 11368
     lt_prog_compiler_can_build_shared_CXX=no
melunko@47
 11369
fi
melunko@47
 11370
melunko@47
 11371
fi
melunko@47
 11372
case $host_os in
melunko@47
 11373
  # For platforms which do not support PIC, -DPIC is meaningless:
melunko@47
 11374
  *djgpp*)
melunko@47
 11375
    lt_prog_compiler_pic_CXX=
melunko@47
 11376
    ;;
melunko@47
 11377
  *)
melunko@47
 11378
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
melunko@47
 11379
    ;;
melunko@47
 11380
esac
melunko@47
 11381
melunko@47
 11382
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
melunko@47
 11383
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
melunko@47
 11384
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
melunko@47
 11385
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 11386
else
melunko@47
 11387
  lt_cv_prog_compiler_c_o_CXX=no
melunko@47
 11388
   $rm -r conftest 2>/dev/null
melunko@47
 11389
   mkdir conftest
melunko@47
 11390
   cd conftest
melunko@47
 11391
   mkdir out
melunko@47
 11392
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
melunko@47
 11393
melunko@47
 11394
   lt_compiler_flag="-o out/conftest2.$ac_objext"
melunko@47
 11395
   # Insert the option either (1) after the last *FLAGS variable, or
melunko@47
 11396
   # (2) before a word containing "conftest.", or (3) at the end.
melunko@47
 11397
   # Note that $ac_compile itself does not contain backslashes and begins
melunko@47
 11398
   # with a dollar sign (not a hyphen), so the echo should work correctly.
melunko@47
 11399
   lt_compile=`echo "$ac_compile" | $SED \
melunko@47
 11400
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
melunko@47
 11401
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
melunko@47
 11402
   -e 's:$: $lt_compiler_flag:'`
melunko@47
 11403
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
melunko@47
 11404
   (eval "$lt_compile" 2>out/conftest.err)
melunko@47
 11405
   ac_status=$?
melunko@47
 11406
   cat out/conftest.err >&5
melunko@47
 11407
   echo "$as_me:__oline__: \$? = $ac_status" >&5
melunko@47
 11408
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
melunko@47
 11409
   then
melunko@47
 11410
     # The compiler can only warn and ignore the option if not recognized
melunko@47
 11411
     # So say no if there are warnings
melunko@47
 11412
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
melunko@47
 11413
     $SED '/^$/d' out/conftest.err >out/conftest.er2
melunko@47
 11414
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
melunko@47
 11415
       lt_cv_prog_compiler_c_o_CXX=yes
melunko@47
 11416
     fi
melunko@47
 11417
   fi
melunko@47
 11418
   chmod u+w . 2>&5
melunko@47
 11419
   $rm conftest*
melunko@47
 11420
   # SGI C++ compiler will create directory out/ii_files/ for
melunko@47
 11421
   # template instantiation
melunko@47
 11422
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
melunko@47
 11423
   $rm out/* && rmdir out
melunko@47
 11424
   cd ..
melunko@47
 11425
   rmdir conftest
melunko@47
 11426
   $rm conftest*
melunko@47
 11427
melunko@47
 11428
fi
melunko@47
 11429
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
melunko@47
 11430
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
melunko@47
 11431
melunko@47
 11432
melunko@47
 11433
hard_links="nottested"
melunko@47
 11434
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
melunko@47
 11435
  # do not overwrite the value of need_locks provided by the user
melunko@47
 11436
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
melunko@47
 11437
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
melunko@47
 11438
  hard_links=yes
melunko@47
 11439
  $rm conftest*
melunko@47
 11440
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
melunko@47
 11441
  touch conftest.a
melunko@47
 11442
  ln conftest.a conftest.b 2>&5 || hard_links=no
melunko@47
 11443
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
melunko@47
 11444
  echo "$as_me:$LINENO: result: $hard_links" >&5
melunko@47
 11445
echo "${ECHO_T}$hard_links" >&6
melunko@47
 11446
  if test "$hard_links" = no; then
melunko@47
 11447
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
melunko@47
 11448
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
melunko@47
 11449
    need_locks=warn
melunko@47
 11450
  fi
melunko@47
 11451
else
melunko@47
 11452
  need_locks=no
melunko@47
 11453
fi
melunko@47
 11454
melunko@47
 11455
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
melunko@47
 11456
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
melunko@47
 11457
melunko@47
 11458
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
melunko@47
 11459
  case $host_os in
melunko@47
 11460
  aix4* | aix5*)
melunko@47
 11461
    # If we're using GNU nm, then we don't want the "-C" option.
melunko@47
 11462
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
melunko@47
 11463
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
melunko@47
 11464
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
melunko@47
 11465
    else
melunko@47
 11466
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
melunko@47
 11467
    fi
melunko@47
 11468
    ;;
melunko@47
 11469
  pw32*)
melunko@47
 11470
    export_symbols_cmds_CXX="$ltdll_cmds"
melunko@47
 11471
  ;;
melunko@47
 11472
  cygwin* | mingw*)
melunko@47
 11473
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
melunko@47
 11474
  ;;
melunko@47
 11475
  *)
melunko@47
 11476
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
melunko@47
 11477
  ;;
melunko@47
 11478
  esac
melunko@47
 11479
melunko@47
 11480
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
melunko@47
 11481
echo "${ECHO_T}$ld_shlibs_CXX" >&6
melunko@47
 11482
test "$ld_shlibs_CXX" = no && can_build_shared=no
melunko@47
 11483
melunko@47
 11484
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
melunko@47
 11485
if test "$GCC" = yes; then
melunko@47
 11486
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
melunko@47
 11487
fi
melunko@47
 11488
melunko@47
 11489
#
melunko@47
 11490
# Do we need to explicitly link libc?
melunko@47
 11491
#
melunko@47
 11492
case "x$archive_cmds_need_lc_CXX" in
melunko@47
 11493
x|xyes)
melunko@47
 11494
  # Assume -lc should be added
melunko@47
 11495
  archive_cmds_need_lc_CXX=yes
melunko@47
 11496
melunko@47
 11497
  if test "$enable_shared" = yes && test "$GCC" = yes; then
melunko@47
 11498
    case $archive_cmds_CXX in
melunko@47
 11499
    *'~'*)
melunko@47
 11500
      # FIXME: we may have to deal with multi-command sequences.
melunko@47
 11501
      ;;
melunko@47
 11502
    '$CC '*)
melunko@47
 11503
      # Test whether the compiler implicitly links with -lc since on some
melunko@47
 11504
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
melunko@47
 11505
      # to ld, don't add -lc before -lgcc.
melunko@47
 11506
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
melunko@47
 11507
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
melunko@47
 11508
      $rm conftest*
melunko@47
 11509
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
melunko@47
 11510
melunko@47
 11511
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 11512
  (eval $ac_compile) 2>&5
melunko@47
 11513
  ac_status=$?
melunko@47
 11514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 11515
  (exit $ac_status); } 2>conftest.err; then
melunko@47
 11516
        soname=conftest
melunko@47
 11517
        lib=conftest
melunko@47
 11518
        libobjs=conftest.$ac_objext
melunko@47
 11519
        deplibs=
melunko@47
 11520
        wl=$lt_prog_compiler_wl_CXX
melunko@47
 11521
        compiler_flags=-v
melunko@47
 11522
        linker_flags=-v
melunko@47
 11523
        verstring=
melunko@47
 11524
        output_objdir=.
melunko@47
 11525
        libname=conftest
melunko@47
 11526
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
melunko@47
 11527
        allow_undefined_flag_CXX=
melunko@47
 11528
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
melunko@47
 11529
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
melunko@47
 11530
  ac_status=$?
melunko@47
 11531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 11532
  (exit $ac_status); }
melunko@47
 11533
        then
melunko@47
 11534
	  archive_cmds_need_lc_CXX=no
melunko@47
 11535
        else
melunko@47
 11536
	  archive_cmds_need_lc_CXX=yes
melunko@47
 11537
        fi
melunko@47
 11538
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
melunko@47
 11539
      else
melunko@47
 11540
        cat conftest.err 1>&5
melunko@47
 11541
      fi
melunko@47
 11542
      $rm conftest*
melunko@47
 11543
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
melunko@47
 11544
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
melunko@47
 11545
      ;;
melunko@47
 11546
    esac
melunko@47
 11547
  fi
melunko@47
 11548
  ;;
melunko@47
 11549
esac
melunko@47
 11550
melunko@47
 11551
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
melunko@47
 11552
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
melunko@47
 11553
library_names_spec=
melunko@47
 11554
libname_spec='lib$name'
melunko@47
 11555
soname_spec=
melunko@47
 11556
shrext_cmds=".so"
melunko@47
 11557
postinstall_cmds=
melunko@47
 11558
postuninstall_cmds=
melunko@47
 11559
finish_cmds=
melunko@47
 11560
finish_eval=
melunko@47
 11561
shlibpath_var=
melunko@47
 11562
shlibpath_overrides_runpath=unknown
melunko@47
 11563
version_type=none
melunko@47
 11564
dynamic_linker="$host_os ld.so"
melunko@47
 11565
sys_lib_dlsearch_path_spec="/lib /usr/lib"
melunko@47
 11566
if test "$GCC" = yes; then
melunko@47
 11567
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
melunko@47
 11568
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
melunko@47
 11569
    # if the path contains ";" then we assume it to be the separator
melunko@47
 11570
    # otherwise default to the standard path separator (i.e. ":") - it is
melunko@47
 11571
    # assumed that no part of a normal pathname contains ";" but that should
melunko@47
 11572
    # okay in the real world where ";" in dirpaths is itself problematic.
melunko@47
 11573
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
melunko@47
 11574
  else
melunko@47
 11575
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
melunko@47
 11576
  fi
melunko@47
 11577
else
melunko@47
 11578
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
melunko@47
 11579
fi
melunko@47
 11580
need_lib_prefix=unknown
melunko@47
 11581
hardcode_into_libs=no
melunko@47
 11582
melunko@47
 11583
# when you set need_version to no, make sure it does not cause -set_version
melunko@47
 11584
# flags to be left without arguments
melunko@47
 11585
need_version=unknown
melunko@47
 11586
melunko@47
 11587
case $host_os in
melunko@47
 11588
aix3*)
melunko@47
 11589
  version_type=linux
melunko@47
 11590
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
melunko@47
 11591
  shlibpath_var=LIBPATH
melunko@47
 11592
melunko@47
 11593
  # AIX 3 has no versioning support, so we append a major version to the name.
melunko@47
 11594
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 11595
  ;;
melunko@47
 11596
melunko@47
 11597
aix4* | aix5*)
melunko@47
 11598
  version_type=linux
melunko@47
 11599
  need_lib_prefix=no
melunko@47
 11600
  need_version=no
melunko@47
 11601
  hardcode_into_libs=yes
melunko@47
 11602
  if test "$host_cpu" = ia64; then
melunko@47
 11603
    # AIX 5 supports IA64
melunko@47
 11604
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
melunko@47
 11605
    shlibpath_var=LD_LIBRARY_PATH
melunko@47
 11606
  else
melunko@47
 11607
    # With GCC up to 2.95.x, collect2 would create an import file
melunko@47
 11608
    # for dependence libraries.  The import file would start with
melunko@47
 11609
    # the line `#! .'.  This would cause the generated library to
melunko@47
 11610
    # depend on `.', always an invalid library.  This was fixed in
melunko@47
 11611
    # development snapshots of GCC prior to 3.0.
melunko@47
 11612
    case $host_os in
melunko@47
 11613
      aix4 | aix4.[01] | aix4.[01].*)
melunko@47
 11614
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
melunko@47
 11615
	   echo ' yes '
melunko@47
 11616
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
melunko@47
 11617
	:
melunko@47
 11618
      else
melunko@47
 11619
	can_build_shared=no
melunko@47
 11620
      fi
melunko@47
 11621
      ;;
melunko@47
 11622
    esac
melunko@47
 11623
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
melunko@47
 11624
    # soname into executable. Probably we can add versioning support to
melunko@47
 11625
    # collect2, so additional links can be useful in future.
melunko@47
 11626
    if test "$aix_use_runtimelinking" = yes; then
melunko@47
 11627
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
melunko@47
 11628
      # instead of lib<name>.a to let people know that these are not
melunko@47
 11629
      # typical AIX shared libraries.
melunko@47
 11630
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 11631
    else
melunko@47
 11632
      # We preserve .a as extension for shared libraries through AIX4.2
melunko@47
 11633
      # and later when we are not doing run time linking.
melunko@47
 11634
      library_names_spec='${libname}${release}.a $libname.a'
melunko@47
 11635
      soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 11636
    fi
melunko@47
 11637
    shlibpath_var=LIBPATH
melunko@47
 11638
  fi
melunko@47
 11639
  ;;
melunko@47
 11640
melunko@47
 11641
amigaos*)
melunko@47
 11642
  library_names_spec='$libname.ixlibrary $libname.a'
melunko@47
 11643
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
melunko@47
 11644
  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'
melunko@47
 11645
  ;;
melunko@47
 11646
melunko@47
 11647
beos*)
melunko@47
 11648
  library_names_spec='${libname}${shared_ext}'
melunko@47
 11649
  dynamic_linker="$host_os ld.so"
melunko@47
 11650
  shlibpath_var=LIBRARY_PATH
melunko@47
 11651
  ;;
melunko@47
 11652
melunko@47
 11653
bsdi[45]*)
melunko@47
 11654
  version_type=linux
melunko@47
 11655
  need_version=no
melunko@47
 11656
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 11657
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 11658
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
melunko@47
 11659
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 11660
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
melunko@47
 11661
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
melunko@47
 11662
  # the default ld.so.conf also contains /usr/contrib/lib and
melunko@47
 11663
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
melunko@47
 11664
  # libtool to hard-code these into programs
melunko@47
 11665
  ;;
melunko@47
 11666
melunko@47
 11667
cygwin* | mingw* | pw32*)
melunko@47
 11668
  version_type=windows
melunko@47
 11669
  shrext_cmds=".dll"
melunko@47
 11670
  need_version=no
melunko@47
 11671
  need_lib_prefix=no
melunko@47
 11672
melunko@47
 11673
  case $GCC,$host_os in
melunko@47
 11674
  yes,cygwin* | yes,mingw* | yes,pw32*)
melunko@47
 11675
    library_names_spec='$libname.dll.a'
melunko@47
 11676
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
melunko@47
 11677
    postinstall_cmds='base_file=`basename \${file}`~
melunko@47
 11678
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
melunko@47
 11679
      dldir=$destdir/`dirname \$dlpath`~
melunko@47
 11680
      test -d \$dldir || mkdir -p \$dldir~
melunko@47
 11681
      $install_prog $dir/$dlname \$dldir/$dlname~
melunko@47
 11682
      chmod a+x \$dldir/$dlname'
melunko@47
 11683
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
melunko@47
 11684
      dlpath=$dir/\$dldll~
melunko@47
 11685
       $rm \$dlpath'
melunko@47
 11686
    shlibpath_overrides_runpath=yes
melunko@47
 11687
melunko@47
 11688
    case $host_os in
melunko@47
 11689
    cygwin*)
melunko@47
 11690
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
melunko@47
 11691
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
melunko@47
 11692
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
melunko@47
 11693
      ;;
melunko@47
 11694
    mingw*)
melunko@47
 11695
      # MinGW DLLs use traditional 'lib' prefix
melunko@47
 11696
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
melunko@47
 11697
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
melunko@47
 11698
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
melunko@47
 11699
        # It is most probably a Windows format PATH printed by
melunko@47
 11700
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
melunko@47
 11701
        # path with ; separators, and with drive letters. We can handle the
melunko@47
 11702
        # drive letters (cygwin fileutils understands them), so leave them,
melunko@47
 11703
        # especially as we might pass files found there to a mingw objdump,
melunko@47
 11704
        # which wouldn't understand a cygwinified path. Ahh.
melunko@47
 11705
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
melunko@47
 11706
      else
melunko@47
 11707
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
melunko@47
 11708
      fi
melunko@47
 11709
      ;;
melunko@47
 11710
    pw32*)
melunko@47
 11711
      # pw32 DLLs use 'pw' prefix rather than 'lib'
melunko@47
 11712
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
melunko@47
 11713
      ;;
melunko@47
 11714
    esac
melunko@47
 11715
    ;;
melunko@47
 11716
melunko@47
 11717
  *)
melunko@47
 11718
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
melunko@47
 11719
    ;;
melunko@47
 11720
  esac
melunko@47
 11721
  dynamic_linker='Win32 ld.exe'
melunko@47
 11722
  # FIXME: first we should search . and the directory the executable is in
melunko@47
 11723
  shlibpath_var=PATH
melunko@47
 11724
  ;;
melunko@47
 11725
melunko@47
 11726
darwin* | rhapsody*)
melunko@47
 11727
  dynamic_linker="$host_os dyld"
melunko@47
 11728
  version_type=darwin
melunko@47
 11729
  need_lib_prefix=no
melunko@47
 11730
  need_version=no
melunko@47
 11731
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
melunko@47
 11732
  soname_spec='${libname}${release}${major}$shared_ext'
melunko@47
 11733
  shlibpath_overrides_runpath=yes
melunko@47
 11734
  shlibpath_var=DYLD_LIBRARY_PATH
melunko@47
 11735
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
melunko@47
 11736
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
melunko@47
 11737
  if test "$GCC" = yes; then
melunko@47
 11738
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
melunko@47
 11739
  else
melunko@47
 11740
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
melunko@47
 11741
  fi
melunko@47
 11742
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
melunko@47
 11743
  ;;
melunko@47
 11744
melunko@47
 11745
dgux*)
melunko@47
 11746
  version_type=linux
melunko@47
 11747
  need_lib_prefix=no
melunko@47
 11748
  need_version=no
melunko@47
 11749
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
melunko@47
 11750
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 11751
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 11752
  ;;
melunko@47
 11753
melunko@47
 11754
freebsd1*)
melunko@47
 11755
  dynamic_linker=no
melunko@47
 11756
  ;;
melunko@47
 11757
melunko@47
 11758
kfreebsd*-gnu)
melunko@47
 11759
  version_type=linux
melunko@47
 11760
  need_lib_prefix=no
melunko@47
 11761
  need_version=no
melunko@47
 11762
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
melunko@47
 11763
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 11764
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 11765
  shlibpath_overrides_runpath=no
melunko@47
 11766
  hardcode_into_libs=yes
melunko@47
 11767
  dynamic_linker='GNU ld.so'
melunko@47
 11768
  ;;
melunko@47
 11769
melunko@47
 11770
freebsd* | dragonfly*)
melunko@47
 11771
  # DragonFly does not have aout.  When/if they implement a new
melunko@47
 11772
  # versioning mechanism, adjust this.
melunko@47
 11773
  if test -x /usr/bin/objformat; then
melunko@47
 11774
    objformat=`/usr/bin/objformat`
melunko@47
 11775
  else
melunko@47
 11776
    case $host_os in
melunko@47
 11777
    freebsd[123]*) objformat=aout ;;
melunko@47
 11778
    *) objformat=elf ;;
melunko@47
 11779
    esac
melunko@47
 11780
  fi
melunko@47
 11781
  version_type=freebsd-$objformat
melunko@47
 11782
  case $version_type in
melunko@47
 11783
    freebsd-elf*)
melunko@47
 11784
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
melunko@47
 11785
      need_version=no
melunko@47
 11786
      need_lib_prefix=no
melunko@47
 11787
      ;;
melunko@47
 11788
    freebsd-*)
melunko@47
 11789
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
melunko@47
 11790
      need_version=yes
melunko@47
 11791
      ;;
melunko@47
 11792
  esac
melunko@47
 11793
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 11794
  case $host_os in
melunko@47
 11795
  freebsd2*)
melunko@47
 11796
    shlibpath_overrides_runpath=yes
melunko@47
 11797
    ;;
melunko@47
 11798
  freebsd3.[01]* | freebsdelf3.[01]*)
melunko@47
 11799
    shlibpath_overrides_runpath=yes
melunko@47
 11800
    hardcode_into_libs=yes
melunko@47
 11801
    ;;
melunko@47
 11802
  *) # from 3.2 on
melunko@47
 11803
    shlibpath_overrides_runpath=no
melunko@47
 11804
    hardcode_into_libs=yes
melunko@47
 11805
    ;;
melunko@47
 11806
  esac
melunko@47
 11807
  ;;
melunko@47
 11808
melunko@47
 11809
gnu*)
melunko@47
 11810
  version_type=linux
melunko@47
 11811
  need_lib_prefix=no
melunko@47
 11812
  need_version=no
melunko@47
 11813
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
melunko@47
 11814
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 11815
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 11816
  hardcode_into_libs=yes
melunko@47
 11817
  ;;
melunko@47
 11818
melunko@47
 11819
hpux9* | hpux10* | hpux11*)
melunko@47
 11820
  # Give a soname corresponding to the major version so that dld.sl refuses to
melunko@47
 11821
  # link against other versions.
melunko@47
 11822
  version_type=sunos
melunko@47
 11823
  need_lib_prefix=no
melunko@47
 11824
  need_version=no
melunko@47
 11825
  case $host_cpu in
melunko@47
 11826
  ia64*)
melunko@47
 11827
    shrext_cmds='.so'
melunko@47
 11828
    hardcode_into_libs=yes
melunko@47
 11829
    dynamic_linker="$host_os dld.so"
melunko@47
 11830
    shlibpath_var=LD_LIBRARY_PATH
melunko@47
 11831
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
melunko@47
 11832
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 11833
    soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 11834
    if test "X$HPUX_IA64_MODE" = X32; then
melunko@47
 11835
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
melunko@47
 11836
    else
melunko@47
 11837
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
melunko@47
 11838
    fi
melunko@47
 11839
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
melunko@47
 11840
    ;;
melunko@47
 11841
   hppa*64*)
melunko@47
 11842
     shrext_cmds='.sl'
melunko@47
 11843
     hardcode_into_libs=yes
melunko@47
 11844
     dynamic_linker="$host_os dld.sl"
melunko@47
 11845
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
melunko@47
 11846
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
melunko@47
 11847
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 11848
     soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 11849
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
melunko@47
 11850
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
melunko@47
 11851
     ;;
melunko@47
 11852
   *)
melunko@47
 11853
    shrext_cmds='.sl'
melunko@47
 11854
    dynamic_linker="$host_os dld.sl"
melunko@47
 11855
    shlibpath_var=SHLIB_PATH
melunko@47
 11856
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
melunko@47
 11857
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 11858
    soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 11859
    ;;
melunko@47
 11860
  esac
melunko@47
 11861
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
melunko@47
 11862
  postinstall_cmds='chmod 555 $lib'
melunko@47
 11863
  ;;
melunko@47
 11864
melunko@47
 11865
irix5* | irix6* | nonstopux*)
melunko@47
 11866
  case $host_os in
melunko@47
 11867
    nonstopux*) version_type=nonstopux ;;
melunko@47
 11868
    *)
melunko@47
 11869
	if test "$lt_cv_prog_gnu_ld" = yes; then
melunko@47
 11870
		version_type=linux
melunko@47
 11871
	else
melunko@47
 11872
		version_type=irix
melunko@47
 11873
	fi ;;
melunko@47
 11874
  esac
melunko@47
 11875
  need_lib_prefix=no
melunko@47
 11876
  need_version=no
melunko@47
 11877
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 11878
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
melunko@47
 11879
  case $host_os in
melunko@47
 11880
  irix5* | nonstopux*)
melunko@47
 11881
    libsuff= shlibsuff=
melunko@47
 11882
    ;;
melunko@47
 11883
  *)
melunko@47
 11884
    case $LD in # libtool.m4 will add one of these switches to LD
melunko@47
 11885
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
melunko@47
 11886
      libsuff= shlibsuff= libmagic=32-bit;;
melunko@47
 11887
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
melunko@47
 11888
      libsuff=32 shlibsuff=N32 libmagic=N32;;
melunko@47
 11889
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
melunko@47
 11890
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
melunko@47
 11891
    *) libsuff= shlibsuff= libmagic=never-match;;
melunko@47
 11892
    esac
melunko@47
 11893
    ;;
melunko@47
 11894
  esac
melunko@47
 11895
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
melunko@47
 11896
  shlibpath_overrides_runpath=no
melunko@47
 11897
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
melunko@47
 11898
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
melunko@47
 11899
  hardcode_into_libs=yes
melunko@47
 11900
  ;;
melunko@47
 11901
melunko@47
 11902
# No shared lib support for Linux oldld, aout, or coff.
melunko@47
 11903
linux*oldld* | linux*aout* | linux*coff*)
melunko@47
 11904
  dynamic_linker=no
melunko@47
 11905
  ;;
melunko@47
 11906
melunko@47
 11907
# This must be Linux ELF.
melunko@47
 11908
linux*)
melunko@47
 11909
  version_type=linux
melunko@47
 11910
  need_lib_prefix=no
melunko@47
 11911
  need_version=no
melunko@47
 11912
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 11913
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 11914
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
melunko@47
 11915
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 11916
  shlibpath_overrides_runpath=no
melunko@47
 11917
  # This implies no fast_install, which is unacceptable.
melunko@47
 11918
  # Some rework will be needed to allow for fast_install
melunko@47
 11919
  # before this can be enabled.
melunko@47
 11920
  hardcode_into_libs=yes
melunko@47
 11921
melunko@47
 11922
  # Append ld.so.conf contents to the search path
melunko@47
 11923
  if test -f /etc/ld.so.conf; then
melunko@47
 11924
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
melunko@47
 11925
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
melunko@47
 11926
  fi
melunko@47
 11927
melunko@47
 11928
  # We used to test for /lib/ld.so.1 and disable shared libraries on
melunko@47
 11929
  # powerpc, because MkLinux only supported shared libraries with the
melunko@47
 11930
  # GNU dynamic linker.  Since this was broken with cross compilers,
melunko@47
 11931
  # most powerpc-linux boxes support dynamic linking these days and
melunko@47
 11932
  # people can always --disable-shared, the test was removed, and we
melunko@47
 11933
  # assume the GNU/Linux dynamic linker is in use.
melunko@47
 11934
  dynamic_linker='GNU/Linux ld.so'
melunko@47
 11935
  ;;
melunko@47
 11936
melunko@47
 11937
knetbsd*-gnu)
melunko@47
 11938
  version_type=linux
melunko@47
 11939
  need_lib_prefix=no
melunko@47
 11940
  need_version=no
melunko@47
 11941
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
melunko@47
 11942
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 11943
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 11944
  shlibpath_overrides_runpath=no
melunko@47
 11945
  hardcode_into_libs=yes
melunko@47
 11946
  dynamic_linker='GNU ld.so'
melunko@47
 11947
  ;;
melunko@47
 11948
melunko@47
 11949
netbsd*)
melunko@47
 11950
  version_type=sunos
melunko@47
 11951
  need_lib_prefix=no
melunko@47
 11952
  need_version=no
melunko@47
 11953
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
melunko@47
 11954
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
melunko@47
 11955
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
melunko@47
 11956
    dynamic_linker='NetBSD (a.out) ld.so'
melunko@47
 11957
  else
melunko@47
 11958
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
melunko@47
 11959
    soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 11960
    dynamic_linker='NetBSD ld.elf_so'
melunko@47
 11961
  fi
melunko@47
 11962
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 11963
  shlibpath_overrides_runpath=yes
melunko@47
 11964
  hardcode_into_libs=yes
melunko@47
 11965
  ;;
melunko@47
 11966
melunko@47
 11967
newsos6)
melunko@47
 11968
  version_type=linux
melunko@47
 11969
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 11970
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 11971
  shlibpath_overrides_runpath=yes
melunko@47
 11972
  ;;
melunko@47
 11973
melunko@47
 11974
nto-qnx*)
melunko@47
 11975
  version_type=linux
melunko@47
 11976
  need_lib_prefix=no
melunko@47
 11977
  need_version=no
melunko@47
 11978
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 11979
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 11980
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 11981
  shlibpath_overrides_runpath=yes
melunko@47
 11982
  ;;
melunko@47
 11983
melunko@47
 11984
openbsd*)
melunko@47
 11985
  version_type=sunos
melunko@47
 11986
  need_lib_prefix=no
melunko@47
 11987
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
melunko@47
 11988
  case $host_os in
melunko@47
 11989
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
melunko@47
 11990
    *)                         need_version=no  ;;
melunko@47
 11991
  esac
melunko@47
 11992
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
melunko@47
 11993
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
melunko@47
 11994
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 11995
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
melunko@47
 11996
    case $host_os in
melunko@47
 11997
      openbsd2.[89] | openbsd2.[89].*)
melunko@47
 11998
	shlibpath_overrides_runpath=no
melunko@47
 11999
	;;
melunko@47
 12000
      *)
melunko@47
 12001
	shlibpath_overrides_runpath=yes
melunko@47
 12002
	;;
melunko@47
 12003
      esac
melunko@47
 12004
  else
melunko@47
 12005
    shlibpath_overrides_runpath=yes
melunko@47
 12006
  fi
melunko@47
 12007
  ;;
melunko@47
 12008
melunko@47
 12009
os2*)
melunko@47
 12010
  libname_spec='$name'
melunko@47
 12011
  shrext_cmds=".dll"
melunko@47
 12012
  need_lib_prefix=no
melunko@47
 12013
  library_names_spec='$libname${shared_ext} $libname.a'
melunko@47
 12014
  dynamic_linker='OS/2 ld.exe'
melunko@47
 12015
  shlibpath_var=LIBPATH
melunko@47
 12016
  ;;
melunko@47
 12017
melunko@47
 12018
osf3* | osf4* | osf5*)
melunko@47
 12019
  version_type=osf
melunko@47
 12020
  need_lib_prefix=no
melunko@47
 12021
  need_version=no
melunko@47
 12022
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 12023
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 12024
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 12025
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
melunko@47
 12026
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
melunko@47
 12027
  ;;
melunko@47
 12028
melunko@47
 12029
sco3.2v5*)
melunko@47
 12030
  version_type=osf
melunko@47
 12031
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 12032
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 12033
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 12034
  ;;
melunko@47
 12035
melunko@47
 12036
solaris*)
melunko@47
 12037
  version_type=linux
melunko@47
 12038
  need_lib_prefix=no
melunko@47
 12039
  need_version=no
melunko@47
 12040
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 12041
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 12042
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 12043
  shlibpath_overrides_runpath=yes
melunko@47
 12044
  hardcode_into_libs=yes
melunko@47
 12045
  # ldd complains unless libraries are executable
melunko@47
 12046
  postinstall_cmds='chmod +x $lib'
melunko@47
 12047
  ;;
melunko@47
 12048
melunko@47
 12049
sunos4*)
melunko@47
 12050
  version_type=sunos
melunko@47
 12051
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
melunko@47
 12052
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
melunko@47
 12053
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 12054
  shlibpath_overrides_runpath=yes
melunko@47
 12055
  if test "$with_gnu_ld" = yes; then
melunko@47
 12056
    need_lib_prefix=no
melunko@47
 12057
  fi
melunko@47
 12058
  need_version=yes
melunko@47
 12059
  ;;
melunko@47
 12060
melunko@47
 12061
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
melunko@47
 12062
  version_type=linux
melunko@47
 12063
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 12064
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 12065
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 12066
  case $host_vendor in
melunko@47
 12067
    sni)
melunko@47
 12068
      shlibpath_overrides_runpath=no
melunko@47
 12069
      need_lib_prefix=no
melunko@47
 12070
      export_dynamic_flag_spec='${wl}-Blargedynsym'
melunko@47
 12071
      runpath_var=LD_RUN_PATH
melunko@47
 12072
      ;;
melunko@47
 12073
    siemens)
melunko@47
 12074
      need_lib_prefix=no
melunko@47
 12075
      ;;
melunko@47
 12076
    motorola)
melunko@47
 12077
      need_lib_prefix=no
melunko@47
 12078
      need_version=no
melunko@47
 12079
      shlibpath_overrides_runpath=no
melunko@47
 12080
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
melunko@47
 12081
      ;;
melunko@47
 12082
  esac
melunko@47
 12083
  ;;
melunko@47
 12084
melunko@47
 12085
sysv4*MP*)
melunko@47
 12086
  if test -d /usr/nec ;then
melunko@47
 12087
    version_type=linux
melunko@47
 12088
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
melunko@47
 12089
    soname_spec='$libname${shared_ext}.$major'
melunko@47
 12090
    shlibpath_var=LD_LIBRARY_PATH
melunko@47
 12091
  fi
melunko@47
 12092
  ;;
melunko@47
 12093
melunko@47
 12094
uts4*)
melunko@47
 12095
  version_type=linux
melunko@47
 12096
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 12097
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 12098
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 12099
  ;;
melunko@47
 12100
melunko@47
 12101
*)
melunko@47
 12102
  dynamic_linker=no
melunko@47
 12103
  ;;
melunko@47
 12104
esac
melunko@47
 12105
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
melunko@47
 12106
echo "${ECHO_T}$dynamic_linker" >&6
melunko@47
 12107
test "$dynamic_linker" = no && can_build_shared=no
melunko@47
 12108
melunko@47
 12109
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
melunko@47
 12110
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
melunko@47
 12111
hardcode_action_CXX=
melunko@47
 12112
if test -n "$hardcode_libdir_flag_spec_CXX" || \
melunko@47
 12113
   test -n "$runpath_var_CXX" || \
melunko@47
 12114
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
melunko@47
 12115
melunko@47
 12116
  # We can hardcode non-existant directories.
melunko@47
 12117
  if test "$hardcode_direct_CXX" != no &&
melunko@47
 12118
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
melunko@47
 12119
     # have to relink, otherwise we might link with an installed library
melunko@47
 12120
     # when we should be linking with a yet-to-be-installed one
melunko@47
 12121
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
melunko@47
 12122
     test "$hardcode_minus_L_CXX" != no; then
melunko@47
 12123
    # Linking always hardcodes the temporary library directory.
melunko@47
 12124
    hardcode_action_CXX=relink
melunko@47
 12125
  else
melunko@47
 12126
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
melunko@47
 12127
    hardcode_action_CXX=immediate
melunko@47
 12128
  fi
melunko@47
 12129
else
melunko@47
 12130
  # We cannot hardcode anything, or else we can only hardcode existing
melunko@47
 12131
  # directories.
melunko@47
 12132
  hardcode_action_CXX=unsupported
melunko@47
 12133
fi
melunko@47
 12134
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
melunko@47
 12135
echo "${ECHO_T}$hardcode_action_CXX" >&6
melunko@47
 12136
melunko@47
 12137
if test "$hardcode_action_CXX" = relink; then
melunko@47
 12138
  # Fast installation is not supported
melunko@47
 12139
  enable_fast_install=no
melunko@47
 12140
elif test "$shlibpath_overrides_runpath" = yes ||
melunko@47
 12141
     test "$enable_shared" = no; then
melunko@47
 12142
  # Fast installation is not necessary
melunko@47
 12143
  enable_fast_install=needless
melunko@47
 12144
fi
melunko@47
 12145
melunko@47
 12146
striplib=
melunko@47
 12147
old_striplib=
melunko@47
 12148
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
melunko@47
 12149
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
melunko@47
 12150
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
melunko@47
 12151
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
melunko@47
 12152
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
melunko@47
 12153
  echo "$as_me:$LINENO: result: yes" >&5
melunko@47
 12154
echo "${ECHO_T}yes" >&6
melunko@47
 12155
else
melunko@47
 12156
# FIXME - insert some real tests, host_os isn't really good enough
melunko@47
 12157
  case $host_os in
melunko@47
 12158
   darwin*)
melunko@47
 12159
       if test -n "$STRIP" ; then
melunko@47
 12160
         striplib="$STRIP -x"
melunko@47
 12161
         echo "$as_me:$LINENO: result: yes" >&5
melunko@47
 12162
echo "${ECHO_T}yes" >&6
melunko@47
 12163
       else
melunko@47
 12164
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 12165
echo "${ECHO_T}no" >&6
melunko@47
 12166
fi
melunko@47
 12167
       ;;
melunko@47
 12168
   *)
melunko@47
 12169
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 12170
echo "${ECHO_T}no" >&6
melunko@47
 12171
    ;;
melunko@47
 12172
  esac
melunko@47
 12173
fi
melunko@47
 12174
melunko@47
 12175
if test "x$enable_dlopen" != xyes; then
melunko@47
 12176
  enable_dlopen=unknown
melunko@47
 12177
  enable_dlopen_self=unknown
melunko@47
 12178
  enable_dlopen_self_static=unknown
melunko@47
 12179
else
melunko@47
 12180
  lt_cv_dlopen=no
melunko@47
 12181
  lt_cv_dlopen_libs=
melunko@47
 12182
melunko@47
 12183
  case $host_os in
melunko@47
 12184
  beos*)
melunko@47
 12185
    lt_cv_dlopen="load_add_on"
melunko@47
 12186
    lt_cv_dlopen_libs=
melunko@47
 12187
    lt_cv_dlopen_self=yes
melunko@47
 12188
    ;;
melunko@47
 12189
melunko@47
 12190
  mingw* | pw32*)
melunko@47
 12191
    lt_cv_dlopen="LoadLibrary"
melunko@47
 12192
    lt_cv_dlopen_libs=
melunko@47
 12193
   ;;
melunko@47
 12194
melunko@47
 12195
  cygwin*)
melunko@47
 12196
    lt_cv_dlopen="dlopen"
melunko@47
 12197
    lt_cv_dlopen_libs=
melunko@47
 12198
   ;;
melunko@47
 12199
melunko@47
 12200
  darwin*)
melunko@47
 12201
  # if libdl is installed we need to link against it
melunko@47
 12202
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
melunko@47
 12203
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
melunko@47
 12204
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
melunko@47
 12205
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 12206
else
melunko@47
 12207
  ac_check_lib_save_LIBS=$LIBS
melunko@47
 12208
LIBS="-ldl  $LIBS"
melunko@47
 12209
cat >conftest.$ac_ext <<_ACEOF
melunko@47
 12210
/* confdefs.h.  */
melunko@47
 12211
_ACEOF
melunko@47
 12212
cat confdefs.h >>conftest.$ac_ext
melunko@47
 12213
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 12214
/* end confdefs.h.  */
melunko@47
 12215
melunko@47
 12216
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 12217
#ifdef __cplusplus
melunko@47
 12218
extern "C"
melunko@47
 12219
#endif
melunko@47
 12220
/* We use char because int might match the return type of a gcc2
melunko@47
 12221
   builtin and then its argument prototype would still apply.  */
melunko@47
 12222
char dlopen ();
melunko@47
 12223
int
melunko@47
 12224
main ()
melunko@47
 12225
{
melunko@47
 12226
dlopen ();
melunko@47
 12227
  ;
melunko@47
 12228
  return 0;
melunko@47
 12229
}
melunko@47
 12230
_ACEOF
melunko@47
 12231
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 12232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 12233
  (eval $ac_link) 2>conftest.er1
melunko@47
 12234
  ac_status=$?
melunko@47
 12235
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 12236
  rm -f conftest.er1
melunko@47
 12237
  cat conftest.err >&5
melunko@47
 12238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12239
  (exit $ac_status); } &&
melunko@47
 12240
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
 12241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 12242
  (eval $ac_try) 2>&5
melunko@47
 12243
  ac_status=$?
melunko@47
 12244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12245
  (exit $ac_status); }; } &&
melunko@47
 12246
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 12247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 12248
  (eval $ac_try) 2>&5
melunko@47
 12249
  ac_status=$?
melunko@47
 12250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12251
  (exit $ac_status); }; }; then
melunko@47
 12252
  ac_cv_lib_dl_dlopen=yes
melunko@47
 12253
else
melunko@47
 12254
  echo "$as_me: failed program was:" >&5
melunko@47
 12255
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 12256
melunko@47
 12257
ac_cv_lib_dl_dlopen=no
melunko@47
 12258
fi
melunko@47
 12259
rm -f conftest.err conftest.$ac_objext \
melunko@47
 12260
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 12261
LIBS=$ac_check_lib_save_LIBS
melunko@47
 12262
fi
melunko@47
 12263
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
melunko@47
 12264
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
melunko@47
 12265
if test $ac_cv_lib_dl_dlopen = yes; then
melunko@47
 12266
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
melunko@47
 12267
else
melunko@47
 12268
  
melunko@47
 12269
    lt_cv_dlopen="dyld"
melunko@47
 12270
    lt_cv_dlopen_libs=
melunko@47
 12271
    lt_cv_dlopen_self=yes
melunko@47
 12272
    
melunko@47
 12273
fi
melunko@47
 12274
melunko@47
 12275
   ;;
melunko@47
 12276
melunko@47
 12277
  *)
melunko@47
 12278
    echo "$as_me:$LINENO: checking for shl_load" >&5
melunko@47
 12279
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
melunko@47
 12280
if test "${ac_cv_func_shl_load+set}" = set; then
melunko@47
 12281
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 12282
else
melunko@47
 12283
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 12284
/* confdefs.h.  */
melunko@47
 12285
_ACEOF
melunko@47
 12286
cat confdefs.h >>conftest.$ac_ext
melunko@47
 12287
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 12288
/* end confdefs.h.  */
melunko@47
 12289
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
melunko@47
 12290
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
melunko@47
 12291
#define shl_load innocuous_shl_load
melunko@47
 12292
melunko@47
 12293
/* System header to define __stub macros and hopefully few prototypes,
melunko@47
 12294
    which can conflict with char shl_load (); below.
melunko@47
 12295
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
melunko@47
 12296
    <limits.h> exists even on freestanding compilers.  */
melunko@47
 12297
melunko@47
 12298
#ifdef __STDC__
melunko@47
 12299
# include <limits.h>
melunko@47
 12300
#else
melunko@47
 12301
# include <assert.h>
melunko@47
 12302
#endif
melunko@47
 12303
melunko@47
 12304
#undef shl_load
melunko@47
 12305
melunko@47
 12306
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 12307
#ifdef __cplusplus
melunko@47
 12308
extern "C"
melunko@47
 12309
{
melunko@47
 12310
#endif
melunko@47
 12311
/* We use char because int might match the return type of a gcc2
melunko@47
 12312
   builtin and then its argument prototype would still apply.  */
melunko@47
 12313
char shl_load ();
melunko@47
 12314
/* The GNU C library defines this for functions which it implements
melunko@47
 12315
    to always fail with ENOSYS.  Some functions are actually named
melunko@47
 12316
    something starting with __ and the normal name is an alias.  */
melunko@47
 12317
#if defined (__stub_shl_load) || defined (__stub___shl_load)
melunko@47
 12318
choke me
melunko@47
 12319
#else
melunko@47
 12320
char (*f) () = shl_load;
melunko@47
 12321
#endif
melunko@47
 12322
#ifdef __cplusplus
melunko@47
 12323
}
melunko@47
 12324
#endif
melunko@47
 12325
melunko@47
 12326
int
melunko@47
 12327
main ()
melunko@47
 12328
{
melunko@47
 12329
return f != shl_load;
melunko@47
 12330
  ;
melunko@47
 12331
  return 0;
melunko@47
 12332
}
melunko@47
 12333
_ACEOF
melunko@47
 12334
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 12335
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 12336
  (eval $ac_link) 2>conftest.er1
melunko@47
 12337
  ac_status=$?
melunko@47
 12338
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 12339
  rm -f conftest.er1
melunko@47
 12340
  cat conftest.err >&5
melunko@47
 12341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12342
  (exit $ac_status); } &&
melunko@47
 12343
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
 12344
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 12345
  (eval $ac_try) 2>&5
melunko@47
 12346
  ac_status=$?
melunko@47
 12347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12348
  (exit $ac_status); }; } &&
melunko@47
 12349
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 12350
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 12351
  (eval $ac_try) 2>&5
melunko@47
 12352
  ac_status=$?
melunko@47
 12353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12354
  (exit $ac_status); }; }; then
melunko@47
 12355
  ac_cv_func_shl_load=yes
melunko@47
 12356
else
melunko@47
 12357
  echo "$as_me: failed program was:" >&5
melunko@47
 12358
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 12359
melunko@47
 12360
ac_cv_func_shl_load=no
melunko@47
 12361
fi
melunko@47
 12362
rm -f conftest.err conftest.$ac_objext \
melunko@47
 12363
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 12364
fi
melunko@47
 12365
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
melunko@47
 12366
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
melunko@47
 12367
if test $ac_cv_func_shl_load = yes; then
melunko@47
 12368
  lt_cv_dlopen="shl_load"
melunko@47
 12369
else
melunko@47
 12370
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
melunko@47
 12371
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
melunko@47
 12372
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
melunko@47
 12373
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 12374
else
melunko@47
 12375
  ac_check_lib_save_LIBS=$LIBS
melunko@47
 12376
LIBS="-ldld  $LIBS"
melunko@47
 12377
cat >conftest.$ac_ext <<_ACEOF
melunko@47
 12378
/* confdefs.h.  */
melunko@47
 12379
_ACEOF
melunko@47
 12380
cat confdefs.h >>conftest.$ac_ext
melunko@47
 12381
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 12382
/* end confdefs.h.  */
melunko@47
 12383
melunko@47
 12384
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 12385
#ifdef __cplusplus
melunko@47
 12386
extern "C"
melunko@47
 12387
#endif
melunko@47
 12388
/* We use char because int might match the return type of a gcc2
melunko@47
 12389
   builtin and then its argument prototype would still apply.  */
melunko@47
 12390
char shl_load ();
melunko@47
 12391
int
melunko@47
 12392
main ()
melunko@47
 12393
{
melunko@47
 12394
shl_load ();
melunko@47
 12395
  ;
melunko@47
 12396
  return 0;
melunko@47
 12397
}
melunko@47
 12398
_ACEOF
melunko@47
 12399
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 12400
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 12401
  (eval $ac_link) 2>conftest.er1
melunko@47
 12402
  ac_status=$?
melunko@47
 12403
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 12404
  rm -f conftest.er1
melunko@47
 12405
  cat conftest.err >&5
melunko@47
 12406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12407
  (exit $ac_status); } &&
melunko@47
 12408
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
 12409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 12410
  (eval $ac_try) 2>&5
melunko@47
 12411
  ac_status=$?
melunko@47
 12412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12413
  (exit $ac_status); }; } &&
melunko@47
 12414
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 12415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 12416
  (eval $ac_try) 2>&5
melunko@47
 12417
  ac_status=$?
melunko@47
 12418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12419
  (exit $ac_status); }; }; then
melunko@47
 12420
  ac_cv_lib_dld_shl_load=yes
melunko@47
 12421
else
melunko@47
 12422
  echo "$as_me: failed program was:" >&5
melunko@47
 12423
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 12424
melunko@47
 12425
ac_cv_lib_dld_shl_load=no
melunko@47
 12426
fi
melunko@47
 12427
rm -f conftest.err conftest.$ac_objext \
melunko@47
 12428
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 12429
LIBS=$ac_check_lib_save_LIBS
melunko@47
 12430
fi
melunko@47
 12431
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
melunko@47
 12432
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
melunko@47
 12433
if test $ac_cv_lib_dld_shl_load = yes; then
melunko@47
 12434
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
melunko@47
 12435
else
melunko@47
 12436
  echo "$as_me:$LINENO: checking for dlopen" >&5
melunko@47
 12437
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
melunko@47
 12438
if test "${ac_cv_func_dlopen+set}" = set; then
melunko@47
 12439
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 12440
else
melunko@47
 12441
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 12442
/* confdefs.h.  */
melunko@47
 12443
_ACEOF
melunko@47
 12444
cat confdefs.h >>conftest.$ac_ext
melunko@47
 12445
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 12446
/* end confdefs.h.  */
melunko@47
 12447
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
melunko@47
 12448
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
melunko@47
 12449
#define dlopen innocuous_dlopen
melunko@47
 12450
melunko@47
 12451
/* System header to define __stub macros and hopefully few prototypes,
melunko@47
 12452
    which can conflict with char dlopen (); below.
melunko@47
 12453
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
melunko@47
 12454
    <limits.h> exists even on freestanding compilers.  */
melunko@47
 12455
melunko@47
 12456
#ifdef __STDC__
melunko@47
 12457
# include <limits.h>
melunko@47
 12458
#else
melunko@47
 12459
# include <assert.h>
melunko@47
 12460
#endif
melunko@47
 12461
melunko@47
 12462
#undef dlopen
melunko@47
 12463
melunko@47
 12464
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 12465
#ifdef __cplusplus
melunko@47
 12466
extern "C"
melunko@47
 12467
{
melunko@47
 12468
#endif
melunko@47
 12469
/* We use char because int might match the return type of a gcc2
melunko@47
 12470
   builtin and then its argument prototype would still apply.  */
melunko@47
 12471
char dlopen ();
melunko@47
 12472
/* The GNU C library defines this for functions which it implements
melunko@47
 12473
    to always fail with ENOSYS.  Some functions are actually named
melunko@47
 12474
    something starting with __ and the normal name is an alias.  */
melunko@47
 12475
#if defined (__stub_dlopen) || defined (__stub___dlopen)
melunko@47
 12476
choke me
melunko@47
 12477
#else
melunko@47
 12478
char (*f) () = dlopen;
melunko@47
 12479
#endif
melunko@47
 12480
#ifdef __cplusplus
melunko@47
 12481
}
melunko@47
 12482
#endif
melunko@47
 12483
melunko@47
 12484
int
melunko@47
 12485
main ()
melunko@47
 12486
{
melunko@47
 12487
return f != dlopen;
melunko@47
 12488
  ;
melunko@47
 12489
  return 0;
melunko@47
 12490
}
melunko@47
 12491
_ACEOF
melunko@47
 12492
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 12493
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 12494
  (eval $ac_link) 2>conftest.er1
melunko@47
 12495
  ac_status=$?
melunko@47
 12496
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 12497
  rm -f conftest.er1
melunko@47
 12498
  cat conftest.err >&5
melunko@47
 12499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12500
  (exit $ac_status); } &&
melunko@47
 12501
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
 12502
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 12503
  (eval $ac_try) 2>&5
melunko@47
 12504
  ac_status=$?
melunko@47
 12505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12506
  (exit $ac_status); }; } &&
melunko@47
 12507
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 12508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 12509
  (eval $ac_try) 2>&5
melunko@47
 12510
  ac_status=$?
melunko@47
 12511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12512
  (exit $ac_status); }; }; then
melunko@47
 12513
  ac_cv_func_dlopen=yes
melunko@47
 12514
else
melunko@47
 12515
  echo "$as_me: failed program was:" >&5
melunko@47
 12516
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 12517
melunko@47
 12518
ac_cv_func_dlopen=no
melunko@47
 12519
fi
melunko@47
 12520
rm -f conftest.err conftest.$ac_objext \
melunko@47
 12521
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 12522
fi
melunko@47
 12523
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
melunko@47
 12524
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
melunko@47
 12525
if test $ac_cv_func_dlopen = yes; then
melunko@47
 12526
  lt_cv_dlopen="dlopen"
melunko@47
 12527
else
melunko@47
 12528
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
melunko@47
 12529
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
melunko@47
 12530
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
melunko@47
 12531
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 12532
else
melunko@47
 12533
  ac_check_lib_save_LIBS=$LIBS
melunko@47
 12534
LIBS="-ldl  $LIBS"
melunko@47
 12535
cat >conftest.$ac_ext <<_ACEOF
melunko@47
 12536
/* confdefs.h.  */
melunko@47
 12537
_ACEOF
melunko@47
 12538
cat confdefs.h >>conftest.$ac_ext
melunko@47
 12539
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 12540
/* end confdefs.h.  */
melunko@47
 12541
melunko@47
 12542
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 12543
#ifdef __cplusplus
melunko@47
 12544
extern "C"
melunko@47
 12545
#endif
melunko@47
 12546
/* We use char because int might match the return type of a gcc2
melunko@47
 12547
   builtin and then its argument prototype would still apply.  */
melunko@47
 12548
char dlopen ();
melunko@47
 12549
int
melunko@47
 12550
main ()
melunko@47
 12551
{
melunko@47
 12552
dlopen ();
melunko@47
 12553
  ;
melunko@47
 12554
  return 0;
melunko@47
 12555
}
melunko@47
 12556
_ACEOF
melunko@47
 12557
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 12558
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 12559
  (eval $ac_link) 2>conftest.er1
melunko@47
 12560
  ac_status=$?
melunko@47
 12561
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 12562
  rm -f conftest.er1
melunko@47
 12563
  cat conftest.err >&5
melunko@47
 12564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12565
  (exit $ac_status); } &&
melunko@47
 12566
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
 12567
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 12568
  (eval $ac_try) 2>&5
melunko@47
 12569
  ac_status=$?
melunko@47
 12570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12571
  (exit $ac_status); }; } &&
melunko@47
 12572
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 12573
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 12574
  (eval $ac_try) 2>&5
melunko@47
 12575
  ac_status=$?
melunko@47
 12576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12577
  (exit $ac_status); }; }; then
melunko@47
 12578
  ac_cv_lib_dl_dlopen=yes
melunko@47
 12579
else
melunko@47
 12580
  echo "$as_me: failed program was:" >&5
melunko@47
 12581
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 12582
melunko@47
 12583
ac_cv_lib_dl_dlopen=no
melunko@47
 12584
fi
melunko@47
 12585
rm -f conftest.err conftest.$ac_objext \
melunko@47
 12586
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 12587
LIBS=$ac_check_lib_save_LIBS
melunko@47
 12588
fi
melunko@47
 12589
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
melunko@47
 12590
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
melunko@47
 12591
if test $ac_cv_lib_dl_dlopen = yes; then
melunko@47
 12592
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
melunko@47
 12593
else
melunko@47
 12594
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
melunko@47
 12595
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
melunko@47
 12596
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
melunko@47
 12597
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 12598
else
melunko@47
 12599
  ac_check_lib_save_LIBS=$LIBS
melunko@47
 12600
LIBS="-lsvld  $LIBS"
melunko@47
 12601
cat >conftest.$ac_ext <<_ACEOF
melunko@47
 12602
/* confdefs.h.  */
melunko@47
 12603
_ACEOF
melunko@47
 12604
cat confdefs.h >>conftest.$ac_ext
melunko@47
 12605
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 12606
/* end confdefs.h.  */
melunko@47
 12607
melunko@47
 12608
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 12609
#ifdef __cplusplus
melunko@47
 12610
extern "C"
melunko@47
 12611
#endif
melunko@47
 12612
/* We use char because int might match the return type of a gcc2
melunko@47
 12613
   builtin and then its argument prototype would still apply.  */
melunko@47
 12614
char dlopen ();
melunko@47
 12615
int
melunko@47
 12616
main ()
melunko@47
 12617
{
melunko@47
 12618
dlopen ();
melunko@47
 12619
  ;
melunko@47
 12620
  return 0;
melunko@47
 12621
}
melunko@47
 12622
_ACEOF
melunko@47
 12623
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 12624
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 12625
  (eval $ac_link) 2>conftest.er1
melunko@47
 12626
  ac_status=$?
melunko@47
 12627
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 12628
  rm -f conftest.er1
melunko@47
 12629
  cat conftest.err >&5
melunko@47
 12630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12631
  (exit $ac_status); } &&
melunko@47
 12632
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
 12633
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 12634
  (eval $ac_try) 2>&5
melunko@47
 12635
  ac_status=$?
melunko@47
 12636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12637
  (exit $ac_status); }; } &&
melunko@47
 12638
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 12639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 12640
  (eval $ac_try) 2>&5
melunko@47
 12641
  ac_status=$?
melunko@47
 12642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12643
  (exit $ac_status); }; }; then
melunko@47
 12644
  ac_cv_lib_svld_dlopen=yes
melunko@47
 12645
else
melunko@47
 12646
  echo "$as_me: failed program was:" >&5
melunko@47
 12647
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 12648
melunko@47
 12649
ac_cv_lib_svld_dlopen=no
melunko@47
 12650
fi
melunko@47
 12651
rm -f conftest.err conftest.$ac_objext \
melunko@47
 12652
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 12653
LIBS=$ac_check_lib_save_LIBS
melunko@47
 12654
fi
melunko@47
 12655
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
melunko@47
 12656
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
melunko@47
 12657
if test $ac_cv_lib_svld_dlopen = yes; then
melunko@47
 12658
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
melunko@47
 12659
else
melunko@47
 12660
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
melunko@47
 12661
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
melunko@47
 12662
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
melunko@47
 12663
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 12664
else
melunko@47
 12665
  ac_check_lib_save_LIBS=$LIBS
melunko@47
 12666
LIBS="-ldld  $LIBS"
melunko@47
 12667
cat >conftest.$ac_ext <<_ACEOF
melunko@47
 12668
/* confdefs.h.  */
melunko@47
 12669
_ACEOF
melunko@47
 12670
cat confdefs.h >>conftest.$ac_ext
melunko@47
 12671
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 12672
/* end confdefs.h.  */
melunko@47
 12673
melunko@47
 12674
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 12675
#ifdef __cplusplus
melunko@47
 12676
extern "C"
melunko@47
 12677
#endif
melunko@47
 12678
/* We use char because int might match the return type of a gcc2
melunko@47
 12679
   builtin and then its argument prototype would still apply.  */
melunko@47
 12680
char dld_link ();
melunko@47
 12681
int
melunko@47
 12682
main ()
melunko@47
 12683
{
melunko@47
 12684
dld_link ();
melunko@47
 12685
  ;
melunko@47
 12686
  return 0;
melunko@47
 12687
}
melunko@47
 12688
_ACEOF
melunko@47
 12689
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 12690
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 12691
  (eval $ac_link) 2>conftest.er1
melunko@47
 12692
  ac_status=$?
melunko@47
 12693
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 12694
  rm -f conftest.er1
melunko@47
 12695
  cat conftest.err >&5
melunko@47
 12696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12697
  (exit $ac_status); } &&
melunko@47
 12698
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
 12699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 12700
  (eval $ac_try) 2>&5
melunko@47
 12701
  ac_status=$?
melunko@47
 12702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12703
  (exit $ac_status); }; } &&
melunko@47
 12704
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 12705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 12706
  (eval $ac_try) 2>&5
melunko@47
 12707
  ac_status=$?
melunko@47
 12708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12709
  (exit $ac_status); }; }; then
melunko@47
 12710
  ac_cv_lib_dld_dld_link=yes
melunko@47
 12711
else
melunko@47
 12712
  echo "$as_me: failed program was:" >&5
melunko@47
 12713
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 12714
melunko@47
 12715
ac_cv_lib_dld_dld_link=no
melunko@47
 12716
fi
melunko@47
 12717
rm -f conftest.err conftest.$ac_objext \
melunko@47
 12718
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 12719
LIBS=$ac_check_lib_save_LIBS
melunko@47
 12720
fi
melunko@47
 12721
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
melunko@47
 12722
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
melunko@47
 12723
if test $ac_cv_lib_dld_dld_link = yes; then
melunko@47
 12724
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
melunko@47
 12725
fi
melunko@47
 12726
melunko@47
 12727
	      
melunko@47
 12728
fi
melunko@47
 12729
melunko@47
 12730
	    
melunko@47
 12731
fi
melunko@47
 12732
melunko@47
 12733
	  
melunko@47
 12734
fi
melunko@47
 12735
melunko@47
 12736
	
melunko@47
 12737
fi
melunko@47
 12738
melunko@47
 12739
      
melunko@47
 12740
fi
melunko@47
 12741
melunko@47
 12742
    ;;
melunko@47
 12743
  esac
melunko@47
 12744
melunko@47
 12745
  if test "x$lt_cv_dlopen" != xno; then
melunko@47
 12746
    enable_dlopen=yes
melunko@47
 12747
  else
melunko@47
 12748
    enable_dlopen=no
melunko@47
 12749
  fi
melunko@47
 12750
melunko@47
 12751
  case $lt_cv_dlopen in
melunko@47
 12752
  dlopen)
melunko@47
 12753
    save_CPPFLAGS="$CPPFLAGS"
melunko@47
 12754
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
melunko@47
 12755
melunko@47
 12756
    save_LDFLAGS="$LDFLAGS"
melunko@47
 12757
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
melunko@47
 12758
melunko@47
 12759
    save_LIBS="$LIBS"
melunko@47
 12760
    LIBS="$lt_cv_dlopen_libs $LIBS"
melunko@47
 12761
melunko@47
 12762
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
melunko@47
 12763
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
melunko@47
 12764
if test "${lt_cv_dlopen_self+set}" = set; then
melunko@47
 12765
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 12766
else
melunko@47
 12767
  	  if test "$cross_compiling" = yes; then :
melunko@47
 12768
  lt_cv_dlopen_self=cross
melunko@47
 12769
else
melunko@47
 12770
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
melunko@47
 12771
  lt_status=$lt_dlunknown
melunko@47
 12772
  cat > conftest.$ac_ext <<EOF
melunko@47
 12773
#line __oline__ "configure"
melunko@47
 12774
#include "confdefs.h"
melunko@47
 12775
melunko@47
 12776
#if HAVE_DLFCN_H
melunko@47
 12777
#include <dlfcn.h>
melunko@47
 12778
#endif
melunko@47
 12779
melunko@47
 12780
#include <stdio.h>
melunko@47
 12781
melunko@47
 12782
#ifdef RTLD_GLOBAL
melunko@47
 12783
#  define LT_DLGLOBAL		RTLD_GLOBAL
melunko@47
 12784
#else
melunko@47
 12785
#  ifdef DL_GLOBAL
melunko@47
 12786
#    define LT_DLGLOBAL		DL_GLOBAL
melunko@47
 12787
#  else
melunko@47
 12788
#    define LT_DLGLOBAL		0
melunko@47
 12789
#  endif
melunko@47
 12790
#endif
melunko@47
 12791
melunko@47
 12792
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
melunko@47
 12793
   find out it does not work in some platform. */
melunko@47
 12794
#ifndef LT_DLLAZY_OR_NOW
melunko@47
 12795
#  ifdef RTLD_LAZY
melunko@47
 12796
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
melunko@47
 12797
#  else
melunko@47
 12798
#    ifdef DL_LAZY
melunko@47
 12799
#      define LT_DLLAZY_OR_NOW		DL_LAZY
melunko@47
 12800
#    else
melunko@47
 12801
#      ifdef RTLD_NOW
melunko@47
 12802
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
melunko@47
 12803
#      else
melunko@47
 12804
#        ifdef DL_NOW
melunko@47
 12805
#          define LT_DLLAZY_OR_NOW	DL_NOW
melunko@47
 12806
#        else
melunko@47
 12807
#          define LT_DLLAZY_OR_NOW	0
melunko@47
 12808
#        endif
melunko@47
 12809
#      endif
melunko@47
 12810
#    endif
melunko@47
 12811
#  endif
melunko@47
 12812
#endif
melunko@47
 12813
melunko@47
 12814
#ifdef __cplusplus
melunko@47
 12815
extern "C" void exit (int);
melunko@47
 12816
#endif
melunko@47
 12817
melunko@47
 12818
void fnord() { int i=42;}
melunko@47
 12819
int main ()
melunko@47
 12820
{
melunko@47
 12821
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
melunko@47
 12822
  int status = $lt_dlunknown;
melunko@47
 12823
melunko@47
 12824
  if (self)
melunko@47
 12825
    {
melunko@47
 12826
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
melunko@47
 12827
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
melunko@47
 12828
      /* dlclose (self); */
melunko@47
 12829
    }
melunko@47
 12830
melunko@47
 12831
    exit (status);
melunko@47
 12832
}
melunko@47
 12833
EOF
melunko@47
 12834
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 12835
  (eval $ac_link) 2>&5
melunko@47
 12836
  ac_status=$?
melunko@47
 12837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12838
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
melunko@47
 12839
    (./conftest; exit; ) >&5 2>/dev/null
melunko@47
 12840
    lt_status=$?
melunko@47
 12841
    case x$lt_status in
melunko@47
 12842
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
melunko@47
 12843
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
melunko@47
 12844
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
melunko@47
 12845
    esac
melunko@47
 12846
  else :
melunko@47
 12847
    # compilation failed
melunko@47
 12848
    lt_cv_dlopen_self=no
melunko@47
 12849
  fi
melunko@47
 12850
fi
melunko@47
 12851
rm -fr conftest*
melunko@47
 12852
melunko@47
 12853
    
melunko@47
 12854
fi
melunko@47
 12855
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
melunko@47
 12856
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
melunko@47
 12857
melunko@47
 12858
    if test "x$lt_cv_dlopen_self" = xyes; then
melunko@47
 12859
      LDFLAGS="$LDFLAGS $link_static_flag"
melunko@47
 12860
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
melunko@47
 12861
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
melunko@47
 12862
if test "${lt_cv_dlopen_self_static+set}" = set; then
melunko@47
 12863
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 12864
else
melunko@47
 12865
  	  if test "$cross_compiling" = yes; then :
melunko@47
 12866
  lt_cv_dlopen_self_static=cross
melunko@47
 12867
else
melunko@47
 12868
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
melunko@47
 12869
  lt_status=$lt_dlunknown
melunko@47
 12870
  cat > conftest.$ac_ext <<EOF
melunko@47
 12871
#line __oline__ "configure"
melunko@47
 12872
#include "confdefs.h"
melunko@47
 12873
melunko@47
 12874
#if HAVE_DLFCN_H
melunko@47
 12875
#include <dlfcn.h>
melunko@47
 12876
#endif
melunko@47
 12877
melunko@47
 12878
#include <stdio.h>
melunko@47
 12879
melunko@47
 12880
#ifdef RTLD_GLOBAL
melunko@47
 12881
#  define LT_DLGLOBAL		RTLD_GLOBAL
melunko@47
 12882
#else
melunko@47
 12883
#  ifdef DL_GLOBAL
melunko@47
 12884
#    define LT_DLGLOBAL		DL_GLOBAL
melunko@47
 12885
#  else
melunko@47
 12886
#    define LT_DLGLOBAL		0
melunko@47
 12887
#  endif
melunko@47
 12888
#endif
melunko@47
 12889
melunko@47
 12890
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
melunko@47
 12891
   find out it does not work in some platform. */
melunko@47
 12892
#ifndef LT_DLLAZY_OR_NOW
melunko@47
 12893
#  ifdef RTLD_LAZY
melunko@47
 12894
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
melunko@47
 12895
#  else
melunko@47
 12896
#    ifdef DL_LAZY
melunko@47
 12897
#      define LT_DLLAZY_OR_NOW		DL_LAZY
melunko@47
 12898
#    else
melunko@47
 12899
#      ifdef RTLD_NOW
melunko@47
 12900
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
melunko@47
 12901
#      else
melunko@47
 12902
#        ifdef DL_NOW
melunko@47
 12903
#          define LT_DLLAZY_OR_NOW	DL_NOW
melunko@47
 12904
#        else
melunko@47
 12905
#          define LT_DLLAZY_OR_NOW	0
melunko@47
 12906
#        endif
melunko@47
 12907
#      endif
melunko@47
 12908
#    endif
melunko@47
 12909
#  endif
melunko@47
 12910
#endif
melunko@47
 12911
melunko@47
 12912
#ifdef __cplusplus
melunko@47
 12913
extern "C" void exit (int);
melunko@47
 12914
#endif
melunko@47
 12915
melunko@47
 12916
void fnord() { int i=42;}
melunko@47
 12917
int main ()
melunko@47
 12918
{
melunko@47
 12919
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
melunko@47
 12920
  int status = $lt_dlunknown;
melunko@47
 12921
melunko@47
 12922
  if (self)
melunko@47
 12923
    {
melunko@47
 12924
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
melunko@47
 12925
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
melunko@47
 12926
      /* dlclose (self); */
melunko@47
 12927
    }
melunko@47
 12928
melunko@47
 12929
    exit (status);
melunko@47
 12930
}
melunko@47
 12931
EOF
melunko@47
 12932
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 12933
  (eval $ac_link) 2>&5
melunko@47
 12934
  ac_status=$?
melunko@47
 12935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 12936
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
melunko@47
 12937
    (./conftest; exit; ) >&5 2>/dev/null
melunko@47
 12938
    lt_status=$?
melunko@47
 12939
    case x$lt_status in
melunko@47
 12940
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
melunko@47
 12941
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
melunko@47
 12942
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
melunko@47
 12943
    esac
melunko@47
 12944
  else :
melunko@47
 12945
    # compilation failed
melunko@47
 12946
    lt_cv_dlopen_self_static=no
melunko@47
 12947
  fi
melunko@47
 12948
fi
melunko@47
 12949
rm -fr conftest*
melunko@47
 12950
melunko@47
 12951
      
melunko@47
 12952
fi
melunko@47
 12953
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
melunko@47
 12954
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
melunko@47
 12955
    fi
melunko@47
 12956
melunko@47
 12957
    CPPFLAGS="$save_CPPFLAGS"
melunko@47
 12958
    LDFLAGS="$save_LDFLAGS"
melunko@47
 12959
    LIBS="$save_LIBS"
melunko@47
 12960
    ;;
melunko@47
 12961
  esac
melunko@47
 12962
melunko@47
 12963
  case $lt_cv_dlopen_self in
melunko@47
 12964
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
melunko@47
 12965
  *) enable_dlopen_self=unknown ;;
melunko@47
 12966
  esac
melunko@47
 12967
melunko@47
 12968
  case $lt_cv_dlopen_self_static in
melunko@47
 12969
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
melunko@47
 12970
  *) enable_dlopen_self_static=unknown ;;
melunko@47
 12971
  esac
melunko@47
 12972
fi
melunko@47
 12973
melunko@47
 12974
melunko@47
 12975
# The else clause should only fire when bootstrapping the
melunko@47
 12976
# libtool distribution, otherwise you forgot to ship ltmain.sh
melunko@47
 12977
# with your package, and you will get complaints that there are
melunko@47
 12978
# no rules to generate ltmain.sh.
melunko@47
 12979
if test -f "$ltmain"; then
melunko@47
 12980
  # See if we are running on zsh, and set the options which allow our commands through
melunko@47
 12981
  # without removal of \ escapes.
melunko@47
 12982
  if test -n "${ZSH_VERSION+set}" ; then
melunko@47
 12983
    setopt NO_GLOB_SUBST
melunko@47
 12984
  fi
melunko@47
 12985
  # Now quote all the things that may contain metacharacters while being
melunko@47
 12986
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
melunko@47
 12987
  # variables and quote the copies for generation of the libtool script.
melunko@47
 12988
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
melunko@47
 12989
    SED SHELL STRIP \
melunko@47
 12990
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
melunko@47
 12991
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
melunko@47
 12992
    deplibs_check_method reload_flag reload_cmds need_locks \
melunko@47
 12993
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
melunko@47
 12994
    lt_cv_sys_global_symbol_to_c_name_address \
melunko@47
 12995
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
melunko@47
 12996
    old_postinstall_cmds old_postuninstall_cmds \
melunko@47
 12997
    compiler_CXX \
melunko@47
 12998
    CC_CXX \
melunko@47
 12999
    LD_CXX \
melunko@47
 13000
    lt_prog_compiler_wl_CXX \
melunko@47
 13001
    lt_prog_compiler_pic_CXX \
melunko@47
 13002
    lt_prog_compiler_static_CXX \
melunko@47
 13003
    lt_prog_compiler_no_builtin_flag_CXX \
melunko@47
 13004
    export_dynamic_flag_spec_CXX \
melunko@47
 13005
    thread_safe_flag_spec_CXX \
melunko@47
 13006
    whole_archive_flag_spec_CXX \
melunko@47
 13007
    enable_shared_with_static_runtimes_CXX \
melunko@47
 13008
    old_archive_cmds_CXX \
melunko@47
 13009
    old_archive_from_new_cmds_CXX \
melunko@47
 13010
    predep_objects_CXX \
melunko@47
 13011
    postdep_objects_CXX \
melunko@47
 13012
    predeps_CXX \
melunko@47
 13013
    postdeps_CXX \
melunko@47
 13014
    compiler_lib_search_path_CXX \
melunko@47
 13015
    archive_cmds_CXX \
melunko@47
 13016
    archive_expsym_cmds_CXX \
melunko@47
 13017
    postinstall_cmds_CXX \
melunko@47
 13018
    postuninstall_cmds_CXX \
melunko@47
 13019
    old_archive_from_expsyms_cmds_CXX \
melunko@47
 13020
    allow_undefined_flag_CXX \
melunko@47
 13021
    no_undefined_flag_CXX \
melunko@47
 13022
    export_symbols_cmds_CXX \
melunko@47
 13023
    hardcode_libdir_flag_spec_CXX \
melunko@47
 13024
    hardcode_libdir_flag_spec_ld_CXX \
melunko@47
 13025
    hardcode_libdir_separator_CXX \
melunko@47
 13026
    hardcode_automatic_CXX \
melunko@47
 13027
    module_cmds_CXX \
melunko@47
 13028
    module_expsym_cmds_CXX \
melunko@47
 13029
    lt_cv_prog_compiler_c_o_CXX \
melunko@47
 13030
    exclude_expsyms_CXX \
melunko@47
 13031
    include_expsyms_CXX; do
melunko@47
 13032
melunko@47
 13033
    case $var in
melunko@47
 13034
    old_archive_cmds_CXX | \
melunko@47
 13035
    old_archive_from_new_cmds_CXX | \
melunko@47
 13036
    archive_cmds_CXX | \
melunko@47
 13037
    archive_expsym_cmds_CXX | \
melunko@47
 13038
    module_cmds_CXX | \
melunko@47
 13039
    module_expsym_cmds_CXX | \
melunko@47
 13040
    old_archive_from_expsyms_cmds_CXX | \
melunko@47
 13041
    export_symbols_cmds_CXX | \
melunko@47
 13042
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
melunko@47
 13043
    postinstall_cmds | postuninstall_cmds | \
melunko@47
 13044
    old_postinstall_cmds | old_postuninstall_cmds | \
melunko@47
 13045
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
melunko@47
 13046
      # Double-quote double-evaled strings.
melunko@47
 13047
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
melunko@47
 13048
      ;;
melunko@47
 13049
    *)
melunko@47
 13050
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
melunko@47
 13051
      ;;
melunko@47
 13052
    esac
melunko@47
 13053
  done
melunko@47
 13054
melunko@47
 13055
  case $lt_echo in
melunko@47
 13056
  *'\$0 --fallback-echo"')
melunko@47
 13057
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
melunko@47
 13058
    ;;
melunko@47
 13059
  esac
melunko@47
 13060
melunko@47
 13061
cfgfile="$ofile"
melunko@47
 13062
melunko@47
 13063
  cat <<__EOF__ >> "$cfgfile"
melunko@47
 13064
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
melunko@47
 13065
melunko@47
 13066
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
melunko@47
 13067
melunko@47
 13068
# Shell to use when invoking shell scripts.
melunko@47
 13069
SHELL=$lt_SHELL
melunko@47
 13070
melunko@47
 13071
# Whether or not to build shared libraries.
melunko@47
 13072
build_libtool_libs=$enable_shared
melunko@47
 13073
melunko@47
 13074
# Whether or not to build static libraries.
melunko@47
 13075
build_old_libs=$enable_static
melunko@47
 13076
melunko@47
 13077
# Whether or not to add -lc for building shared libraries.
melunko@47
 13078
build_libtool_need_lc=$archive_cmds_need_lc_CXX
melunko@47
 13079
melunko@47
 13080
# Whether or not to disallow shared libs when runtime libs are static
melunko@47
 13081
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
melunko@47
 13082
melunko@47
 13083
# Whether or not to optimize for fast installation.
melunko@47
 13084
fast_install=$enable_fast_install
melunko@47
 13085
melunko@47
 13086
# The host system.
melunko@47
 13087
host_alias=$host_alias
melunko@47
 13088
host=$host
melunko@47
 13089
host_os=$host_os
melunko@47
 13090
melunko@47
 13091
# The build system.
melunko@47
 13092
build_alias=$build_alias
melunko@47
 13093
build=$build
melunko@47
 13094
build_os=$build_os
melunko@47
 13095
melunko@47
 13096
# An echo program that does not interpret backslashes.
melunko@47
 13097
echo=$lt_echo
melunko@47
 13098
melunko@47
 13099
# The archiver.
melunko@47
 13100
AR=$lt_AR
melunko@47
 13101
AR_FLAGS=$lt_AR_FLAGS
melunko@47
 13102
melunko@47
 13103
# A C compiler.
melunko@47
 13104
LTCC=$lt_LTCC
melunko@47
 13105
melunko@47
 13106
# A language-specific compiler.
melunko@47
 13107
CC=$lt_compiler_CXX
melunko@47
 13108
melunko@47
 13109
# Is the compiler the GNU C compiler?
melunko@47
 13110
with_gcc=$GCC_CXX
melunko@47
 13111
melunko@47
 13112
# An ERE matcher.
melunko@47
 13113
EGREP=$lt_EGREP
melunko@47
 13114
melunko@47
 13115
# The linker used to build libraries.
melunko@47
 13116
LD=$lt_LD_CXX
melunko@47
 13117
melunko@47
 13118
# Whether we need hard or soft links.
melunko@47
 13119
LN_S=$lt_LN_S
melunko@47
 13120
melunko@47
 13121
# A BSD-compatible nm program.
melunko@47
 13122
NM=$lt_NM
melunko@47
 13123
melunko@47
 13124
# A symbol stripping program
melunko@47
 13125
STRIP=$lt_STRIP
melunko@47
 13126
melunko@47
 13127
# Used to examine libraries when file_magic_cmd begins "file"
melunko@47
 13128
MAGIC_CMD=$MAGIC_CMD
melunko@47
 13129
melunko@47
 13130
# Used on cygwin: DLL creation program.
melunko@47
 13131
DLLTOOL="$DLLTOOL"
melunko@47
 13132
melunko@47
 13133
# Used on cygwin: object dumper.
melunko@47
 13134
OBJDUMP="$OBJDUMP"
melunko@47
 13135
melunko@47
 13136
# Used on cygwin: assembler.
melunko@47
 13137
AS="$AS"
melunko@47
 13138
melunko@47
 13139
# The name of the directory that contains temporary libtool files.
melunko@47
 13140
objdir=$objdir
melunko@47
 13141
melunko@47
 13142
# How to create reloadable object files.
melunko@47
 13143
reload_flag=$lt_reload_flag
melunko@47
 13144
reload_cmds=$lt_reload_cmds
melunko@47
 13145
melunko@47
 13146
# How to pass a linker flag through the compiler.
melunko@47
 13147
wl=$lt_lt_prog_compiler_wl_CXX
melunko@47
 13148
melunko@47
 13149
# Object file suffix (normally "o").
melunko@47
 13150
objext="$ac_objext"
melunko@47
 13151
melunko@47
 13152
# Old archive suffix (normally "a").
melunko@47
 13153
libext="$libext"
melunko@47
 13154
melunko@47
 13155
# Shared library suffix (normally ".so").
melunko@47
 13156
shrext_cmds='$shrext_cmds'
melunko@47
 13157
melunko@47
 13158
# Executable file suffix (normally "").
melunko@47
 13159
exeext="$exeext"
melunko@47
 13160
melunko@47
 13161
# Additional compiler flags for building library objects.
melunko@47
 13162
pic_flag=$lt_lt_prog_compiler_pic_CXX
melunko@47
 13163
pic_mode=$pic_mode
melunko@47
 13164
melunko@47
 13165
# What is the maximum length of a command?
melunko@47
 13166
max_cmd_len=$lt_cv_sys_max_cmd_len
melunko@47
 13167
melunko@47
 13168
# Does compiler simultaneously support -c and -o options?
melunko@47
 13169
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
melunko@47
 13170
melunko@47
 13171
# Must we lock files when doing compilation?
melunko@47
 13172
need_locks=$lt_need_locks
melunko@47
 13173
melunko@47
 13174
# Do we need the lib prefix for modules?
melunko@47
 13175
need_lib_prefix=$need_lib_prefix
melunko@47
 13176
melunko@47
 13177
# Do we need a version for libraries?
melunko@47
 13178
need_version=$need_version
melunko@47
 13179
melunko@47
 13180
# Whether dlopen is supported.
melunko@47
 13181
dlopen_support=$enable_dlopen
melunko@47
 13182
melunko@47
 13183
# Whether dlopen of programs is supported.
melunko@47
 13184
dlopen_self=$enable_dlopen_self
melunko@47
 13185
melunko@47
 13186
# Whether dlopen of statically linked programs is supported.
melunko@47
 13187
dlopen_self_static=$enable_dlopen_self_static
melunko@47
 13188
melunko@47
 13189
# Compiler flag to prevent dynamic linking.
melunko@47
 13190
link_static_flag=$lt_lt_prog_compiler_static_CXX
melunko@47
 13191
melunko@47
 13192
# Compiler flag to turn off builtin functions.
melunko@47
 13193
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
melunko@47
 13194
melunko@47
 13195
# Compiler flag to allow reflexive dlopens.
melunko@47
 13196
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
melunko@47
 13197
melunko@47
 13198
# Compiler flag to generate shared objects directly from archives.
melunko@47
 13199
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
melunko@47
 13200
melunko@47
 13201
# Compiler flag to generate thread-safe objects.
melunko@47
 13202
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
melunko@47
 13203
melunko@47
 13204
# Library versioning type.
melunko@47
 13205
version_type=$version_type
melunko@47
 13206
melunko@47
 13207
# Format of library name prefix.
melunko@47
 13208
libname_spec=$lt_libname_spec
melunko@47
 13209
melunko@47
 13210
# List of archive names.  First name is the real one, the rest are links.
melunko@47
 13211
# The last name is the one that the linker finds with -lNAME.
melunko@47
 13212
library_names_spec=$lt_library_names_spec
melunko@47
 13213
melunko@47
 13214
# The coded name of the library, if different from the real name.
melunko@47
 13215
soname_spec=$lt_soname_spec
melunko@47
 13216
melunko@47
 13217
# Commands used to build and install an old-style archive.
melunko@47
 13218
RANLIB=$lt_RANLIB
melunko@47
 13219
old_archive_cmds=$lt_old_archive_cmds_CXX
melunko@47
 13220
old_postinstall_cmds=$lt_old_postinstall_cmds
melunko@47
 13221
old_postuninstall_cmds=$lt_old_postuninstall_cmds
melunko@47
 13222
melunko@47
 13223
# Create an old-style archive from a shared archive.
melunko@47
 13224
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
melunko@47
 13225
melunko@47
 13226
# Create a temporary old-style archive to link instead of a shared archive.
melunko@47
 13227
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
melunko@47
 13228
melunko@47
 13229
# Commands used to build and install a shared archive.
melunko@47
 13230
archive_cmds=$lt_archive_cmds_CXX
melunko@47
 13231
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
melunko@47
 13232
postinstall_cmds=$lt_postinstall_cmds
melunko@47
 13233
postuninstall_cmds=$lt_postuninstall_cmds
melunko@47
 13234
melunko@47
 13235
# Commands used to build a loadable module (assumed same as above if empty)
melunko@47
 13236
module_cmds=$lt_module_cmds_CXX
melunko@47
 13237
module_expsym_cmds=$lt_module_expsym_cmds_CXX
melunko@47
 13238
melunko@47
 13239
# Commands to strip libraries.
melunko@47
 13240
old_striplib=$lt_old_striplib
melunko@47
 13241
striplib=$lt_striplib
melunko@47
 13242
melunko@47
 13243
# Dependencies to place before the objects being linked to create a
melunko@47
 13244
# shared library.
melunko@47
 13245
predep_objects=$lt_predep_objects_CXX
melunko@47
 13246
melunko@47
 13247
# Dependencies to place after the objects being linked to create a
melunko@47
 13248
# shared library.
melunko@47
 13249
postdep_objects=$lt_postdep_objects_CXX
melunko@47
 13250
melunko@47
 13251
# Dependencies to place before the objects being linked to create a
melunko@47
 13252
# shared library.
melunko@47
 13253
predeps=$lt_predeps_CXX
melunko@47
 13254
melunko@47
 13255
# Dependencies to place after the objects being linked to create a
melunko@47
 13256
# shared library.
melunko@47
 13257
postdeps=$lt_postdeps_CXX
melunko@47
 13258
melunko@47
 13259
# The library search path used internally by the compiler when linking
melunko@47
 13260
# a shared library.
melunko@47
 13261
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
melunko@47
 13262
melunko@47
 13263
# Method to check whether dependent libraries are shared objects.
melunko@47
 13264
deplibs_check_method=$lt_deplibs_check_method
melunko@47
 13265
melunko@47
 13266
# Command to use when deplibs_check_method == file_magic.
melunko@47
 13267
file_magic_cmd=$lt_file_magic_cmd
melunko@47
 13268
melunko@47
 13269
# Flag that allows shared libraries with undefined symbols to be built.
melunko@47
 13270
allow_undefined_flag=$lt_allow_undefined_flag_CXX
melunko@47
 13271
melunko@47
 13272
# Flag that forces no undefined symbols.
melunko@47
 13273
no_undefined_flag=$lt_no_undefined_flag_CXX
melunko@47
 13274
melunko@47
 13275
# Commands used to finish a libtool library installation in a directory.
melunko@47
 13276
finish_cmds=$lt_finish_cmds
melunko@47
 13277
melunko@47
 13278
# Same as above, but a single script fragment to be evaled but not shown.
melunko@47
 13279
finish_eval=$lt_finish_eval
melunko@47
 13280
melunko@47
 13281
# Take the output of nm and produce a listing of raw symbols and C names.
melunko@47
 13282
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
melunko@47
 13283
melunko@47
 13284
# Transform the output of nm in a proper C declaration
melunko@47
 13285
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
melunko@47
 13286
melunko@47
 13287
# Transform the output of nm in a C name address pair
melunko@47
 13288
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
melunko@47
 13289
melunko@47
 13290
# This is the shared library runtime path variable.
melunko@47
 13291
runpath_var=$runpath_var
melunko@47
 13292
melunko@47
 13293
# This is the shared library path variable.
melunko@47
 13294
shlibpath_var=$shlibpath_var
melunko@47
 13295
melunko@47
 13296
# Is shlibpath searched before the hard-coded library search path?
melunko@47
 13297
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
melunko@47
 13298
melunko@47
 13299
# How to hardcode a shared library path into an executable.
melunko@47
 13300
hardcode_action=$hardcode_action_CXX
melunko@47
 13301
melunko@47
 13302
# Whether we should hardcode library paths into libraries.
melunko@47
 13303
hardcode_into_libs=$hardcode_into_libs
melunko@47
 13304
melunko@47
 13305
# Flag to hardcode \$libdir into a binary during linking.
melunko@47
 13306
# This must work even if \$libdir does not exist.
melunko@47
 13307
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
melunko@47
 13308
melunko@47
 13309
# If ld is used when linking, flag to hardcode \$libdir into
melunko@47
 13310
# a binary during linking. This must work even if \$libdir does
melunko@47
 13311
# not exist.
melunko@47
 13312
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
melunko@47
 13313
melunko@47
 13314
# Whether we need a single -rpath flag with a separated argument.
melunko@47
 13315
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
melunko@47
 13316
melunko@47
 13317
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
melunko@47
 13318
# resulting binary.
melunko@47
 13319
hardcode_direct=$hardcode_direct_CXX
melunko@47
 13320
melunko@47
 13321
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
melunko@47
 13322
# resulting binary.
melunko@47
 13323
hardcode_minus_L=$hardcode_minus_L_CXX
melunko@47
 13324
melunko@47
 13325
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
melunko@47
 13326
# the resulting binary.
melunko@47
 13327
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
melunko@47
 13328
melunko@47
 13329
# Set to yes if building a shared library automatically hardcodes DIR into the library
melunko@47
 13330
# and all subsequent libraries and executables linked against it.
melunko@47
 13331
hardcode_automatic=$hardcode_automatic_CXX
melunko@47
 13332
melunko@47
 13333
# Variables whose values should be saved in libtool wrapper scripts and
melunko@47
 13334
# restored at relink time.
melunko@47
 13335
variables_saved_for_relink="$variables_saved_for_relink"
melunko@47
 13336
melunko@47
 13337
# Whether libtool must link a program against all its dependency libraries.
melunko@47
 13338
link_all_deplibs=$link_all_deplibs_CXX
melunko@47
 13339
melunko@47
 13340
# Compile-time system search path for libraries
melunko@47
 13341
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
melunko@47
 13342
melunko@47
 13343
# Run-time system search path for libraries
melunko@47
 13344
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
melunko@47
 13345
melunko@47
 13346
# Fix the shell variable \$srcfile for the compiler.
melunko@47
 13347
fix_srcfile_path="$fix_srcfile_path_CXX"
melunko@47
 13348
melunko@47
 13349
# Set to yes if exported symbols are required.
melunko@47
 13350
always_export_symbols=$always_export_symbols_CXX
melunko@47
 13351
melunko@47
 13352
# The commands to list exported symbols.
melunko@47
 13353
export_symbols_cmds=$lt_export_symbols_cmds_CXX
melunko@47
 13354
melunko@47
 13355
# The commands to extract the exported symbol list from a shared archive.
melunko@47
 13356
extract_expsyms_cmds=$lt_extract_expsyms_cmds
melunko@47
 13357
melunko@47
 13358
# Symbols that should not be listed in the preloaded symbols.
melunko@47
 13359
exclude_expsyms=$lt_exclude_expsyms_CXX
melunko@47
 13360
melunko@47
 13361
# Symbols that must always be exported.
melunko@47
 13362
include_expsyms=$lt_include_expsyms_CXX
melunko@47
 13363
melunko@47
 13364
# ### END LIBTOOL TAG CONFIG: $tagname
melunko@47
 13365
melunko@47
 13366
__EOF__
melunko@47
 13367
melunko@47
 13368
melunko@47
 13369
else
melunko@47
 13370
  # If there is no Makefile yet, we rely on a make rule to execute
melunko@47
 13371
  # `config.status --recheck' to rerun these tests and create the
melunko@47
 13372
  # libtool script then.
melunko@47
 13373
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
melunko@47
 13374
  if test -f "$ltmain_in"; then
melunko@47
 13375
    test -f Makefile && make "$ltmain"
melunko@47
 13376
  fi
melunko@47
 13377
fi
melunko@47
 13378
melunko@47
 13379
melunko@47
 13380
ac_ext=c
melunko@47
 13381
ac_cpp='$CPP $CPPFLAGS'
melunko@47
 13382
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
 13383
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
 13384
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
 13385
melunko@47
 13386
CC=$lt_save_CC
melunko@47
 13387
LDCXX=$LD
melunko@47
 13388
LD=$lt_save_LD
melunko@47
 13389
GCC=$lt_save_GCC
melunko@47
 13390
with_gnu_ldcxx=$with_gnu_ld
melunko@47
 13391
with_gnu_ld=$lt_save_with_gnu_ld
melunko@47
 13392
lt_cv_path_LDCXX=$lt_cv_path_LD
melunko@47
 13393
lt_cv_path_LD=$lt_save_path_LD
melunko@47
 13394
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
melunko@47
 13395
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
melunko@47
 13396
melunko@47
 13397
	else
melunko@47
 13398
	  tagname=""
melunko@47
 13399
	fi
melunko@47
 13400
	;;
melunko@47
 13401
melunko@47
 13402
      F77)
melunko@47
 13403
	if test -n "$F77" && test "X$F77" != "Xno"; then
melunko@47
 13404
	  
melunko@47
 13405
ac_ext=f
melunko@47
 13406
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
melunko@47
 13407
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
 13408
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
melunko@47
 13409
melunko@47
 13410
melunko@47
 13411
archive_cmds_need_lc_F77=no
melunko@47
 13412
allow_undefined_flag_F77=
melunko@47
 13413
always_export_symbols_F77=no
melunko@47
 13414
archive_expsym_cmds_F77=
melunko@47
 13415
export_dynamic_flag_spec_F77=
melunko@47
 13416
hardcode_direct_F77=no
melunko@47
 13417
hardcode_libdir_flag_spec_F77=
melunko@47
 13418
hardcode_libdir_flag_spec_ld_F77=
melunko@47
 13419
hardcode_libdir_separator_F77=
melunko@47
 13420
hardcode_minus_L_F77=no
melunko@47
 13421
hardcode_automatic_F77=no
melunko@47
 13422
module_cmds_F77=
melunko@47
 13423
module_expsym_cmds_F77=
melunko@47
 13424
link_all_deplibs_F77=unknown
melunko@47
 13425
old_archive_cmds_F77=$old_archive_cmds
melunko@47
 13426
no_undefined_flag_F77=
melunko@47
 13427
whole_archive_flag_spec_F77=
melunko@47
 13428
enable_shared_with_static_runtimes_F77=no
melunko@47
 13429
melunko@47
 13430
# Source file extension for f77 test sources.
melunko@47
 13431
ac_ext=f
melunko@47
 13432
melunko@47
 13433
# Object file extension for compiled f77 test sources.
melunko@47
 13434
objext=o
melunko@47
 13435
objext_F77=$objext
melunko@47
 13436
melunko@47
 13437
# Code to be used in simple compile tests
melunko@47
 13438
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
melunko@47
 13439
melunko@47
 13440
# Code to be used in simple link tests
melunko@47
 13441
lt_simple_link_test_code="      program t\n      end\n"
melunko@47
 13442
melunko@47
 13443
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
melunko@47
 13444
melunko@47
 13445
# If no C compiler was specified, use CC.
melunko@47
 13446
LTCC=${LTCC-"$CC"}
melunko@47
 13447
melunko@47
 13448
# Allow CC to be a program name with arguments.
melunko@47
 13449
compiler=$CC
melunko@47
 13450
melunko@47
 13451
melunko@47
 13452
# save warnings/boilerplate of simple test code
melunko@47
 13453
ac_outfile=conftest.$ac_objext
melunko@47
 13454
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
melunko@47
 13455
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
melunko@47
 13456
_lt_compiler_boilerplate=`cat conftest.err`
melunko@47
 13457
$rm conftest*
melunko@47
 13458
melunko@47
 13459
ac_outfile=conftest.$ac_objext
melunko@47
 13460
printf "$lt_simple_link_test_code" >conftest.$ac_ext
melunko@47
 13461
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
melunko@47
 13462
_lt_linker_boilerplate=`cat conftest.err`
melunko@47
 13463
$rm conftest*
melunko@47
 13464
melunko@47
 13465
melunko@47
 13466
# Allow CC to be a program name with arguments.
melunko@47
 13467
lt_save_CC="$CC"
melunko@47
 13468
CC=${F77-"f77"}
melunko@47
 13469
compiler=$CC
melunko@47
 13470
compiler_F77=$CC
melunko@47
 13471
for cc_temp in $compiler""; do
melunko@47
 13472
  case $cc_temp in
melunko@47
 13473
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
melunko@47
 13474
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
melunko@47
 13475
    \-*) ;;
melunko@47
 13476
    *) break;;
melunko@47
 13477
  esac
melunko@47
 13478
done
melunko@47
 13479
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
melunko@47
 13480
melunko@47
 13481
melunko@47
 13482
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
melunko@47
 13483
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
melunko@47
 13484
echo "$as_me:$LINENO: result: $can_build_shared" >&5
melunko@47
 13485
echo "${ECHO_T}$can_build_shared" >&6
melunko@47
 13486
melunko@47
 13487
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
melunko@47
 13488
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
melunko@47
 13489
test "$can_build_shared" = "no" && enable_shared=no
melunko@47
 13490
melunko@47
 13491
# On AIX, shared libraries and static libraries use the same namespace, and
melunko@47
 13492
# are all built from PIC.
melunko@47
 13493
case $host_os in
melunko@47
 13494
aix3*)
melunko@47
 13495
  test "$enable_shared" = yes && enable_static=no
melunko@47
 13496
  if test -n "$RANLIB"; then
melunko@47
 13497
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
melunko@47
 13498
    postinstall_cmds='$RANLIB $lib'
melunko@47
 13499
  fi
melunko@47
 13500
  ;;
melunko@47
 13501
aix4* | aix5*)
melunko@47
 13502
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
melunko@47
 13503
    test "$enable_shared" = yes && enable_static=no
melunko@47
 13504
  fi
melunko@47
 13505
  ;;
melunko@47
 13506
esac
melunko@47
 13507
echo "$as_me:$LINENO: result: $enable_shared" >&5
melunko@47
 13508
echo "${ECHO_T}$enable_shared" >&6
melunko@47
 13509
melunko@47
 13510
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
melunko@47
 13511
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
melunko@47
 13512
# Make sure either enable_shared or enable_static is yes.
melunko@47
 13513
test "$enable_shared" = yes || enable_static=yes
melunko@47
 13514
echo "$as_me:$LINENO: result: $enable_static" >&5
melunko@47
 13515
echo "${ECHO_T}$enable_static" >&6
melunko@47
 13516
melunko@47
 13517
test "$ld_shlibs_F77" = no && can_build_shared=no
melunko@47
 13518
melunko@47
 13519
GCC_F77="$G77"
melunko@47
 13520
LD_F77="$LD"
melunko@47
 13521
melunko@47
 13522
lt_prog_compiler_wl_F77=
melunko@47
 13523
lt_prog_compiler_pic_F77=
melunko@47
 13524
lt_prog_compiler_static_F77=
melunko@47
 13525
melunko@47
 13526
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
melunko@47
 13527
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
melunko@47
 13528
 
melunko@47
 13529
  if test "$GCC" = yes; then
melunko@47
 13530
    lt_prog_compiler_wl_F77='-Wl,'
melunko@47
 13531
    lt_prog_compiler_static_F77='-static'
melunko@47
 13532
melunko@47
 13533
    case $host_os in
melunko@47
 13534
      aix*)
melunko@47
 13535
      # All AIX code is PIC.
melunko@47
 13536
      if test "$host_cpu" = ia64; then
melunko@47
 13537
	# AIX 5 now supports IA64 processor
melunko@47
 13538
	lt_prog_compiler_static_F77='-Bstatic'
melunko@47
 13539
      fi
melunko@47
 13540
      ;;
melunko@47
 13541
melunko@47
 13542
    amigaos*)
melunko@47
 13543
      # FIXME: we need at least 68020 code to build shared libraries, but
melunko@47
 13544
      # adding the `-m68020' flag to GCC prevents building anything better,
melunko@47
 13545
      # like `-m68040'.
melunko@47
 13546
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
melunko@47
 13547
      ;;
melunko@47
 13548
melunko@47
 13549
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
melunko@47
 13550
      # PIC is the default for these OSes.
melunko@47
 13551
      ;;
melunko@47
 13552
melunko@47
 13553
    mingw* | pw32* | os2*)
melunko@47
 13554
      # This hack is so that the source file can tell whether it is being
melunko@47
 13555
      # built for inclusion in a dll (and should export symbols for example).
melunko@47
 13556
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
melunko@47
 13557
      ;;
melunko@47
 13558
melunko@47
 13559
    darwin* | rhapsody*)
melunko@47
 13560
      # PIC is the default on this platform
melunko@47
 13561
      # Common symbols not allowed in MH_DYLIB files
melunko@47
 13562
      lt_prog_compiler_pic_F77='-fno-common'
melunko@47
 13563
      ;;
melunko@47
 13564
melunko@47
 13565
    msdosdjgpp*)
melunko@47
 13566
      # Just because we use GCC doesn't mean we suddenly get shared libraries
melunko@47
 13567
      # on systems that don't support them.
melunko@47
 13568
      lt_prog_compiler_can_build_shared_F77=no
melunko@47
 13569
      enable_shared=no
melunko@47
 13570
      ;;
melunko@47
 13571
melunko@47
 13572
    sysv4*MP*)
melunko@47
 13573
      if test -d /usr/nec; then
melunko@47
 13574
	lt_prog_compiler_pic_F77=-Kconform_pic
melunko@47
 13575
      fi
melunko@47
 13576
      ;;
melunko@47
 13577
melunko@47
 13578
    hpux*)
melunko@47
 13579
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
melunko@47
 13580
      # not for PA HP-UX.
melunko@47
 13581
      case $host_cpu in
melunko@47
 13582
      hppa*64*|ia64*)
melunko@47
 13583
	# +Z the default
melunko@47
 13584
	;;
melunko@47
 13585
      *)
melunko@47
 13586
	lt_prog_compiler_pic_F77='-fPIC'
melunko@47
 13587
	;;
melunko@47
 13588
      esac
melunko@47
 13589
      ;;
melunko@47
 13590
melunko@47
 13591
    *)
melunko@47
 13592
      lt_prog_compiler_pic_F77='-fPIC'
melunko@47
 13593
      ;;
melunko@47
 13594
    esac
melunko@47
 13595
  else
melunko@47
 13596
    # PORTME Check for flag to pass linker flags through the system compiler.
melunko@47
 13597
    case $host_os in
melunko@47
 13598
    aix*)
melunko@47
 13599
      lt_prog_compiler_wl_F77='-Wl,'
melunko@47
 13600
      if test "$host_cpu" = ia64; then
melunko@47
 13601
	# AIX 5 now supports IA64 processor
melunko@47
 13602
	lt_prog_compiler_static_F77='-Bstatic'
melunko@47
 13603
      else
melunko@47
 13604
	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
melunko@47
 13605
      fi
melunko@47
 13606
      ;;
melunko@47
 13607
      darwin*)
melunko@47
 13608
        # PIC is the default on this platform
melunko@47
 13609
        # Common symbols not allowed in MH_DYLIB files
melunko@47
 13610
       case $cc_basename in
melunko@47
 13611
         xlc*)
melunko@47
 13612
         lt_prog_compiler_pic_F77='-qnocommon'
melunko@47
 13613
         lt_prog_compiler_wl_F77='-Wl,'
melunko@47
 13614
         ;;
melunko@47
 13615
       esac
melunko@47
 13616
       ;;
melunko@47
 13617
melunko@47
 13618
    mingw* | pw32* | os2*)
melunko@47
 13619
      # This hack is so that the source file can tell whether it is being
melunko@47
 13620
      # built for inclusion in a dll (and should export symbols for example).
melunko@47
 13621
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
melunko@47
 13622
      ;;
melunko@47
 13623
melunko@47
 13624
    hpux9* | hpux10* | hpux11*)
melunko@47
 13625
      lt_prog_compiler_wl_F77='-Wl,'
melunko@47
 13626
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
melunko@47
 13627
      # not for PA HP-UX.
melunko@47
 13628
      case $host_cpu in
melunko@47
 13629
      hppa*64*|ia64*)
melunko@47
 13630
	# +Z the default
melunko@47
 13631
	;;
melunko@47
 13632
      *)
melunko@47
 13633
	lt_prog_compiler_pic_F77='+Z'
melunko@47
 13634
	;;
melunko@47
 13635
      esac
melunko@47
 13636
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
melunko@47
 13637
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
melunko@47
 13638
      ;;
melunko@47
 13639
melunko@47
 13640
    irix5* | irix6* | nonstopux*)
melunko@47
 13641
      lt_prog_compiler_wl_F77='-Wl,'
melunko@47
 13642
      # PIC (with -KPIC) is the default.
melunko@47
 13643
      lt_prog_compiler_static_F77='-non_shared'
melunko@47
 13644
      ;;
melunko@47
 13645
melunko@47
 13646
    newsos6)
melunko@47
 13647
      lt_prog_compiler_pic_F77='-KPIC'
melunko@47
 13648
      lt_prog_compiler_static_F77='-Bstatic'
melunko@47
 13649
      ;;
melunko@47
 13650
melunko@47
 13651
    linux*)
melunko@47
 13652
      case $cc_basename in
melunko@47
 13653
      icc* | ecc*)
melunko@47
 13654
	lt_prog_compiler_wl_F77='-Wl,'
melunko@47
 13655
	lt_prog_compiler_pic_F77='-KPIC'
melunko@47
 13656
	lt_prog_compiler_static_F77='-static'
melunko@47
 13657
        ;;
melunko@47
 13658
      pgcc* | pgf77* | pgf90* | pgf95*)
melunko@47
 13659
        # Portland Group compilers (*not* the Pentium gcc compiler,
melunko@47
 13660
	# which looks to be a dead project)
melunko@47
 13661
	lt_prog_compiler_wl_F77='-Wl,'
melunko@47
 13662
	lt_prog_compiler_pic_F77='-fpic'
melunko@47
 13663
	lt_prog_compiler_static_F77='-Bstatic'
melunko@47
 13664
        ;;
melunko@47
 13665
      ccc*)
melunko@47
 13666
        lt_prog_compiler_wl_F77='-Wl,'
melunko@47
 13667
        # All Alpha code is PIC.
melunko@47
 13668
        lt_prog_compiler_static_F77='-non_shared'
melunko@47
 13669
        ;;
melunko@47
 13670
      esac
melunko@47
 13671
      ;;
melunko@47
 13672
melunko@47
 13673
    osf3* | osf4* | osf5*)
melunko@47
 13674
      lt_prog_compiler_wl_F77='-Wl,'
melunko@47
 13675
      # All OSF/1 code is PIC.
melunko@47
 13676
      lt_prog_compiler_static_F77='-non_shared'
melunko@47
 13677
      ;;
melunko@47
 13678
melunko@47
 13679
    sco3.2v5*)
melunko@47
 13680
      lt_prog_compiler_pic_F77='-Kpic'
melunko@47
 13681
      lt_prog_compiler_static_F77='-dn'
melunko@47
 13682
      ;;
melunko@47
 13683
melunko@47
 13684
    solaris*)
melunko@47
 13685
      lt_prog_compiler_pic_F77='-KPIC'
melunko@47
 13686
      lt_prog_compiler_static_F77='-Bstatic'
melunko@47
 13687
      case $cc_basename in
melunko@47
 13688
      f77* | f90* | f95*)
melunko@47
 13689
	lt_prog_compiler_wl_F77='-Qoption ld ';;
melunko@47
 13690
      *)
melunko@47
 13691
	lt_prog_compiler_wl_F77='-Wl,';;
melunko@47
 13692
      esac
melunko@47
 13693
      ;;
melunko@47
 13694
melunko@47
 13695
    sunos4*)
melunko@47
 13696
      lt_prog_compiler_wl_F77='-Qoption ld '
melunko@47
 13697
      lt_prog_compiler_pic_F77='-PIC'
melunko@47
 13698
      lt_prog_compiler_static_F77='-Bstatic'
melunko@47
 13699
      ;;
melunko@47
 13700
melunko@47
 13701
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
melunko@47
 13702
      lt_prog_compiler_wl_F77='-Wl,'
melunko@47
 13703
      lt_prog_compiler_pic_F77='-KPIC'
melunko@47
 13704
      lt_prog_compiler_static_F77='-Bstatic'
melunko@47
 13705
      ;;
melunko@47
 13706
melunko@47
 13707
    sysv4*MP*)
melunko@47
 13708
      if test -d /usr/nec ;then
melunko@47
 13709
	lt_prog_compiler_pic_F77='-Kconform_pic'
melunko@47
 13710
	lt_prog_compiler_static_F77='-Bstatic'
melunko@47
 13711
      fi
melunko@47
 13712
      ;;
melunko@47
 13713
melunko@47
 13714
    unicos*)
melunko@47
 13715
      lt_prog_compiler_wl_F77='-Wl,'
melunko@47
 13716
      lt_prog_compiler_can_build_shared_F77=no
melunko@47
 13717
      ;;
melunko@47
 13718
melunko@47
 13719
    uts4*)
melunko@47
 13720
      lt_prog_compiler_pic_F77='-pic'
melunko@47
 13721
      lt_prog_compiler_static_F77='-Bstatic'
melunko@47
 13722
      ;;
melunko@47
 13723
melunko@47
 13724
    *)
melunko@47
 13725
      lt_prog_compiler_can_build_shared_F77=no
melunko@47
 13726
      ;;
melunko@47
 13727
    esac
melunko@47
 13728
  fi
melunko@47
 13729
melunko@47
 13730
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
melunko@47
 13731
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
melunko@47
 13732
melunko@47
 13733
#
melunko@47
 13734
# Check to make sure the PIC flag actually works.
melunko@47
 13735
#
melunko@47
 13736
if test -n "$lt_prog_compiler_pic_F77"; then
melunko@47
 13737
  
melunko@47
 13738
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
melunko@47
 13739
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
melunko@47
 13740
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
melunko@47
 13741
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 13742
else
melunko@47
 13743
  lt_prog_compiler_pic_works_F77=no
melunko@47
 13744
  ac_outfile=conftest.$ac_objext
melunko@47
 13745
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
melunko@47
 13746
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
melunko@47
 13747
   # Insert the option either (1) after the last *FLAGS variable, or
melunko@47
 13748
   # (2) before a word containing "conftest.", or (3) at the end.
melunko@47
 13749
   # Note that $ac_compile itself does not contain backslashes and begins
melunko@47
 13750
   # with a dollar sign (not a hyphen), so the echo should work correctly.
melunko@47
 13751
   # The option is referenced via a variable to avoid confusing sed.
melunko@47
 13752
   lt_compile=`echo "$ac_compile" | $SED \
melunko@47
 13753
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
melunko@47
 13754
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
melunko@47
 13755
   -e 's:$: $lt_compiler_flag:'`
melunko@47
 13756
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
melunko@47
 13757
   (eval "$lt_compile" 2>conftest.err)
melunko@47
 13758
   ac_status=$?
melunko@47
 13759
   cat conftest.err >&5
melunko@47
 13760
   echo "$as_me:__oline__: \$? = $ac_status" >&5
melunko@47
 13761
   if (exit $ac_status) && test -s "$ac_outfile"; then
melunko@47
 13762
     # The compiler can only warn and ignore the option if not recognized
melunko@47
 13763
     # So say no if there are warnings other than the usual output.
melunko@47
 13764
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
melunko@47
 13765
     $SED '/^$/d' conftest.err >conftest.er2
melunko@47
 13766
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
melunko@47
 13767
       lt_prog_compiler_pic_works_F77=yes
melunko@47
 13768
     fi
melunko@47
 13769
   fi
melunko@47
 13770
   $rm conftest*
melunko@47
 13771
melunko@47
 13772
fi
melunko@47
 13773
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
melunko@47
 13774
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
melunko@47
 13775
melunko@47
 13776
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
melunko@47
 13777
    case $lt_prog_compiler_pic_F77 in
melunko@47
 13778
     "" | " "*) ;;
melunko@47
 13779
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
melunko@47
 13780
     esac
melunko@47
 13781
else
melunko@47
 13782
    lt_prog_compiler_pic_F77=
melunko@47
 13783
     lt_prog_compiler_can_build_shared_F77=no
melunko@47
 13784
fi
melunko@47
 13785
melunko@47
 13786
fi
melunko@47
 13787
case $host_os in
melunko@47
 13788
  # For platforms which do not support PIC, -DPIC is meaningless:
melunko@47
 13789
  *djgpp*)
melunko@47
 13790
    lt_prog_compiler_pic_F77=
melunko@47
 13791
    ;;
melunko@47
 13792
  *)
melunko@47
 13793
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
melunko@47
 13794
    ;;
melunko@47
 13795
esac
melunko@47
 13796
melunko@47
 13797
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
melunko@47
 13798
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
melunko@47
 13799
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
melunko@47
 13800
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 13801
else
melunko@47
 13802
  lt_cv_prog_compiler_c_o_F77=no
melunko@47
 13803
   $rm -r conftest 2>/dev/null
melunko@47
 13804
   mkdir conftest
melunko@47
 13805
   cd conftest
melunko@47
 13806
   mkdir out
melunko@47
 13807
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
melunko@47
 13808
melunko@47
 13809
   lt_compiler_flag="-o out/conftest2.$ac_objext"
melunko@47
 13810
   # Insert the option either (1) after the last *FLAGS variable, or
melunko@47
 13811
   # (2) before a word containing "conftest.", or (3) at the end.
melunko@47
 13812
   # Note that $ac_compile itself does not contain backslashes and begins
melunko@47
 13813
   # with a dollar sign (not a hyphen), so the echo should work correctly.
melunko@47
 13814
   lt_compile=`echo "$ac_compile" | $SED \
melunko@47
 13815
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
melunko@47
 13816
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
melunko@47
 13817
   -e 's:$: $lt_compiler_flag:'`
melunko@47
 13818
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
melunko@47
 13819
   (eval "$lt_compile" 2>out/conftest.err)
melunko@47
 13820
   ac_status=$?
melunko@47
 13821
   cat out/conftest.err >&5
melunko@47
 13822
   echo "$as_me:__oline__: \$? = $ac_status" >&5
melunko@47
 13823
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
melunko@47
 13824
   then
melunko@47
 13825
     # The compiler can only warn and ignore the option if not recognized
melunko@47
 13826
     # So say no if there are warnings
melunko@47
 13827
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
melunko@47
 13828
     $SED '/^$/d' out/conftest.err >out/conftest.er2
melunko@47
 13829
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
melunko@47
 13830
       lt_cv_prog_compiler_c_o_F77=yes
melunko@47
 13831
     fi
melunko@47
 13832
   fi
melunko@47
 13833
   chmod u+w . 2>&5
melunko@47
 13834
   $rm conftest*
melunko@47
 13835
   # SGI C++ compiler will create directory out/ii_files/ for
melunko@47
 13836
   # template instantiation
melunko@47
 13837
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
melunko@47
 13838
   $rm out/* && rmdir out
melunko@47
 13839
   cd ..
melunko@47
 13840
   rmdir conftest
melunko@47
 13841
   $rm conftest*
melunko@47
 13842
melunko@47
 13843
fi
melunko@47
 13844
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
melunko@47
 13845
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
melunko@47
 13846
melunko@47
 13847
melunko@47
 13848
hard_links="nottested"
melunko@47
 13849
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
melunko@47
 13850
  # do not overwrite the value of need_locks provided by the user
melunko@47
 13851
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
melunko@47
 13852
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
melunko@47
 13853
  hard_links=yes
melunko@47
 13854
  $rm conftest*
melunko@47
 13855
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
melunko@47
 13856
  touch conftest.a
melunko@47
 13857
  ln conftest.a conftest.b 2>&5 || hard_links=no
melunko@47
 13858
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
melunko@47
 13859
  echo "$as_me:$LINENO: result: $hard_links" >&5
melunko@47
 13860
echo "${ECHO_T}$hard_links" >&6
melunko@47
 13861
  if test "$hard_links" = no; then
melunko@47
 13862
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
melunko@47
 13863
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
melunko@47
 13864
    need_locks=warn
melunko@47
 13865
  fi
melunko@47
 13866
else
melunko@47
 13867
  need_locks=no
melunko@47
 13868
fi
melunko@47
 13869
melunko@47
 13870
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
melunko@47
 13871
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
melunko@47
 13872
melunko@47
 13873
  runpath_var=
melunko@47
 13874
  allow_undefined_flag_F77=
melunko@47
 13875
  enable_shared_with_static_runtimes_F77=no
melunko@47
 13876
  archive_cmds_F77=
melunko@47
 13877
  archive_expsym_cmds_F77=
melunko@47
 13878
  old_archive_From_new_cmds_F77=
melunko@47
 13879
  old_archive_from_expsyms_cmds_F77=
melunko@47
 13880
  export_dynamic_flag_spec_F77=
melunko@47
 13881
  whole_archive_flag_spec_F77=
melunko@47
 13882
  thread_safe_flag_spec_F77=
melunko@47
 13883
  hardcode_libdir_flag_spec_F77=
melunko@47
 13884
  hardcode_libdir_flag_spec_ld_F77=
melunko@47
 13885
  hardcode_libdir_separator_F77=
melunko@47
 13886
  hardcode_direct_F77=no
melunko@47
 13887
  hardcode_minus_L_F77=no
melunko@47
 13888
  hardcode_shlibpath_var_F77=unsupported
melunko@47
 13889
  link_all_deplibs_F77=unknown
melunko@47
 13890
  hardcode_automatic_F77=no
melunko@47
 13891
  module_cmds_F77=
melunko@47
 13892
  module_expsym_cmds_F77=
melunko@47
 13893
  always_export_symbols_F77=no
melunko@47
 13894
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
melunko@47
 13895
  # include_expsyms should be a list of space-separated symbols to be *always*
melunko@47
 13896
  # included in the symbol list
melunko@47
 13897
  include_expsyms_F77=
melunko@47
 13898
  # exclude_expsyms can be an extended regexp of symbols to exclude
melunko@47
 13899
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
melunko@47
 13900
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
melunko@47
 13901
  # as well as any symbol that contains `d'.
melunko@47
 13902
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
melunko@47
 13903
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
melunko@47
 13904
  # platforms (ab)use it in PIC code, but their linkers get confused if
melunko@47
 13905
  # the symbol is explicitly referenced.  Since portable code cannot
melunko@47
 13906
  # rely on this symbol name, it's probably fine to never include it in
melunko@47
 13907
  # preloaded symbol tables.
melunko@47
 13908
  extract_expsyms_cmds=
melunko@47
 13909
  # Just being paranoid about ensuring that cc_basename is set.
melunko@47
 13910
  for cc_temp in $compiler""; do
melunko@47
 13911
  case $cc_temp in
melunko@47
 13912
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
melunko@47
 13913
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
melunko@47
 13914
    \-*) ;;
melunko@47
 13915
    *) break;;
melunko@47
 13916
  esac
melunko@47
 13917
done
melunko@47
 13918
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
melunko@47
 13919
melunko@47
 13920
  case $host_os in
melunko@47
 13921
  cygwin* | mingw* | pw32*)
melunko@47
 13922
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
melunko@47
 13923
    # When not using gcc, we currently assume that we are using
melunko@47
 13924
    # Microsoft Visual C++.
melunko@47
 13925
    if test "$GCC" != yes; then
melunko@47
 13926
      with_gnu_ld=no
melunko@47
 13927
    fi
melunko@47
 13928
    ;;
melunko@47
 13929
  openbsd*)
melunko@47
 13930
    with_gnu_ld=no
melunko@47
 13931
    ;;
melunko@47
 13932
  esac
melunko@47
 13933
melunko@47
 13934
  ld_shlibs_F77=yes
melunko@47
 13935
  if test "$with_gnu_ld" = yes; then
melunko@47
 13936
    # If archive_cmds runs LD, not CC, wlarc should be empty
melunko@47
 13937
    wlarc='${wl}'
melunko@47
 13938
melunko@47
 13939
    # Set some defaults for GNU ld with shared library support. These
melunko@47
 13940
    # are reset later if shared libraries are not supported. Putting them
melunko@47
 13941
    # here allows them to be overridden if necessary.
melunko@47
 13942
    runpath_var=LD_RUN_PATH
melunko@47
 13943
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
melunko@47
 13944
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
melunko@47
 13945
    # ancient GNU ld didn't support --whole-archive et. al.
melunko@47
 13946
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
melunko@47
 13947
	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
melunko@47
 13948
      else
melunko@47
 13949
  	whole_archive_flag_spec_F77=
melunko@47
 13950
    fi
melunko@47
 13951
    supports_anon_versioning=no
melunko@47
 13952
    case `$LD -v 2>/dev/null` in
melunko@47
 13953
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
melunko@47
 13954
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
melunko@47
 13955
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
melunko@47
 13956
      *\ 2.11.*) ;; # other 2.11 versions
melunko@47
 13957
      *) supports_anon_versioning=yes ;;
melunko@47
 13958
    esac
melunko@47
 13959
melunko@47
 13960
    # See if GNU ld supports shared libraries.
melunko@47
 13961
    case $host_os in
melunko@47
 13962
    aix3* | aix4* | aix5*)
melunko@47
 13963
      # On AIX/PPC, the GNU linker is very broken
melunko@47
 13964
      if test "$host_cpu" != ia64; then
melunko@47
 13965
	ld_shlibs_F77=no
melunko@47
 13966
	cat <<EOF 1>&2
melunko@47
 13967
melunko@47
 13968
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
melunko@47
 13969
*** to be unable to reliably create shared libraries on AIX.
melunko@47
 13970
*** Therefore, libtool is disabling shared libraries support.  If you
melunko@47
 13971
*** really care for shared libraries, you may want to modify your PATH
melunko@47
 13972
*** so that a non-GNU linker is found, and then restart.
melunko@47
 13973
melunko@47
 13974
EOF
melunko@47
 13975
      fi
melunko@47
 13976
      ;;
melunko@47
 13977
melunko@47
 13978
    amigaos*)
melunko@47
 13979
      archive_cmds_F77='$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)'
melunko@47
 13980
      hardcode_libdir_flag_spec_F77='-L$libdir'
melunko@47
 13981
      hardcode_minus_L_F77=yes
melunko@47
 13982
melunko@47
 13983
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
melunko@47
 13984
      # that the semantics of dynamic libraries on AmigaOS, at least up
melunko@47
 13985
      # to version 4, is to share data among multiple programs linked
melunko@47
 13986
      # with the same dynamic library.  Since this doesn't match the
melunko@47
 13987
      # behavior of shared libraries on other platforms, we can't use
melunko@47
 13988
      # them.
melunko@47
 13989
      ld_shlibs_F77=no
melunko@47
 13990
      ;;
melunko@47
 13991
melunko@47
 13992
    beos*)
melunko@47
 13993
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
melunko@47
 13994
	allow_undefined_flag_F77=unsupported
melunko@47
 13995
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
melunko@47
 13996
	# support --undefined.  This deserves some investigation.  FIXME
melunko@47
 13997
	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
 13998
      else
melunko@47
 13999
	ld_shlibs_F77=no
melunko@47
 14000
      fi
melunko@47
 14001
      ;;
melunko@47
 14002
melunko@47
 14003
    cygwin* | mingw* | pw32*)
melunko@47
 14004
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
melunko@47
 14005
      # as there is no search path for DLLs.
melunko@47
 14006
      hardcode_libdir_flag_spec_F77='-L$libdir'
melunko@47
 14007
      allow_undefined_flag_F77=unsupported
melunko@47
 14008
      always_export_symbols_F77=no
melunko@47
 14009
      enable_shared_with_static_runtimes_F77=yes
melunko@47
 14010
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
melunko@47
 14011
melunko@47
 14012
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
melunko@47
 14013
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
melunko@47
 14014
	# If the export-symbols file already is a .def file (1st line
melunko@47
 14015
	# is EXPORTS), use it as is; otherwise, prepend...
melunko@47
 14016
	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
melunko@47
 14017
	  cp $export_symbols $output_objdir/$soname.def;
melunko@47
 14018
	else
melunko@47
 14019
	  echo EXPORTS > $output_objdir/$soname.def;
melunko@47
 14020
	  cat $export_symbols >> $output_objdir/$soname.def;
melunko@47
 14021
	fi~
melunko@47
 14022
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
melunko@47
 14023
      else
melunko@47
 14024
	ld_shlibs_F77=no
melunko@47
 14025
      fi
melunko@47
 14026
      ;;
melunko@47
 14027
melunko@47
 14028
    linux*)
melunko@47
 14029
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
melunko@47
 14030
	tmp_addflag=
melunko@47
 14031
	case $cc_basename,$host_cpu in
melunko@47
 14032
	pgcc*)				# Portland Group C compiler
melunko@47
 14033
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
melunko@47
 14034
	  tmp_addflag=' $pic_flag'
melunko@47
 14035
	  ;;
melunko@47
 14036
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
melunko@47
 14037
	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
melunko@47
 14038
	  tmp_addflag=' $pic_flag -Mnomain' ;;
melunko@47
 14039
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
melunko@47
 14040
	  tmp_addflag=' -i_dynamic' ;;
melunko@47
 14041
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
melunko@47
 14042
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
melunko@47
 14043
	ifc* | ifort*)			# Intel Fortran compiler
melunko@47
 14044
	  tmp_addflag=' -nofor_main' ;;
melunko@47
 14045
	esac
melunko@47
 14046
	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
 14047
melunko@47
 14048
	if test $supports_anon_versioning = yes; then
melunko@47
 14049
	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
melunko@47
 14050
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
melunko@47
 14051
  $echo "local: *; };" >> $output_objdir/$libname.ver~
melunko@47
 14052
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
melunko@47
 14053
	fi
melunko@47
 14054
      else
melunko@47
 14055
	ld_shlibs_F77=no
melunko@47
 14056
      fi
melunko@47
 14057
      ;;
melunko@47
 14058
melunko@47
 14059
    netbsd*)
melunko@47
 14060
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
melunko@47
 14061
	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
melunko@47
 14062
	wlarc=
melunko@47
 14063
      else
melunko@47
 14064
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
 14065
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
melunko@47
 14066
      fi
melunko@47
 14067
      ;;
melunko@47
 14068
melunko@47
 14069
    solaris* | sysv5*)
melunko@47
 14070
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
melunko@47
 14071
	ld_shlibs_F77=no
melunko@47
 14072
	cat <<EOF 1>&2
melunko@47
 14073
melunko@47
 14074
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
melunko@47
 14075
*** create shared libraries on Solaris systems.  Therefore, libtool
melunko@47
 14076
*** is disabling shared libraries support.  We urge you to upgrade GNU
melunko@47
 14077
*** binutils to release 2.9.1 or newer.  Another option is to modify
melunko@47
 14078
*** your PATH or compiler configuration so that the native linker is
melunko@47
 14079
*** used, and then restart.
melunko@47
 14080
melunko@47
 14081
EOF
melunko@47
 14082
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
melunko@47
 14083
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
 14084
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
melunko@47
 14085
      else
melunko@47
 14086
	ld_shlibs_F77=no
melunko@47
 14087
      fi
melunko@47
 14088
      ;;
melunko@47
 14089
melunko@47
 14090
    sunos4*)
melunko@47
 14091
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14092
      wlarc=
melunko@47
 14093
      hardcode_direct_F77=yes
melunko@47
 14094
      hardcode_shlibpath_var_F77=no
melunko@47
 14095
      ;;
melunko@47
 14096
melunko@47
 14097
    *)
melunko@47
 14098
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
melunko@47
 14099
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
 14100
	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
melunko@47
 14101
      else
melunko@47
 14102
	ld_shlibs_F77=no
melunko@47
 14103
      fi
melunko@47
 14104
      ;;
melunko@47
 14105
    esac
melunko@47
 14106
melunko@47
 14107
    if test "$ld_shlibs_F77" = no; then
melunko@47
 14108
      runpath_var=
melunko@47
 14109
      hardcode_libdir_flag_spec_F77=
melunko@47
 14110
      export_dynamic_flag_spec_F77=
melunko@47
 14111
      whole_archive_flag_spec_F77=
melunko@47
 14112
    fi
melunko@47
 14113
  else
melunko@47
 14114
    # PORTME fill in a description of your system's linker (not GNU ld)
melunko@47
 14115
    case $host_os in
melunko@47
 14116
    aix3*)
melunko@47
 14117
      allow_undefined_flag_F77=unsupported
melunko@47
 14118
      always_export_symbols_F77=yes
melunko@47
 14119
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
melunko@47
 14120
      # Note: this linker hardcodes the directories in LIBPATH if there
melunko@47
 14121
      # are no directories specified by -L.
melunko@47
 14122
      hardcode_minus_L_F77=yes
melunko@47
 14123
      if test "$GCC" = yes && test -z "$link_static_flag"; then
melunko@47
 14124
	# Neither direct hardcoding nor static linking is supported with a
melunko@47
 14125
	# broken collect2.
melunko@47
 14126
	hardcode_direct_F77=unsupported
melunko@47
 14127
      fi
melunko@47
 14128
      ;;
melunko@47
 14129
melunko@47
 14130
    aix4* | aix5*)
melunko@47
 14131
      if test "$host_cpu" = ia64; then
melunko@47
 14132
	# On IA64, the linker does run time linking by default, so we don't
melunko@47
 14133
	# have to do anything special.
melunko@47
 14134
	aix_use_runtimelinking=no
melunko@47
 14135
	exp_sym_flag='-Bexport'
melunko@47
 14136
	no_entry_flag=""
melunko@47
 14137
      else
melunko@47
 14138
	# If we're using GNU nm, then we don't want the "-C" option.
melunko@47
 14139
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
melunko@47
 14140
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
melunko@47
 14141
	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
melunko@47
 14142
	else
melunko@47
 14143
	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
melunko@47
 14144
	fi
melunko@47
 14145
	aix_use_runtimelinking=no
melunko@47
 14146
melunko@47
 14147
	# Test if we are trying to use run time linking or normal
melunko@47
 14148
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
melunko@47
 14149
	# need to do runtime linking.
melunko@47
 14150
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
melunko@47
 14151
	  for ld_flag in $LDFLAGS; do
melunko@47
 14152
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
melunko@47
 14153
  	    aix_use_runtimelinking=yes
melunko@47
 14154
  	    break
melunko@47
 14155
  	  fi
melunko@47
 14156
	  done
melunko@47
 14157
	esac
melunko@47
 14158
melunko@47
 14159
	exp_sym_flag='-bexport'
melunko@47
 14160
	no_entry_flag='-bnoentry'
melunko@47
 14161
      fi
melunko@47
 14162
melunko@47
 14163
      # When large executables or shared objects are built, AIX ld can
melunko@47
 14164
      # have problems creating the table of contents.  If linking a library
melunko@47
 14165
      # or program results in "error TOC overflow" add -mminimal-toc to
melunko@47
 14166
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
melunko@47
 14167
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
melunko@47
 14168
melunko@47
 14169
      archive_cmds_F77=''
melunko@47
 14170
      hardcode_direct_F77=yes
melunko@47
 14171
      hardcode_libdir_separator_F77=':'
melunko@47
 14172
      link_all_deplibs_F77=yes
melunko@47
 14173
melunko@47
 14174
      if test "$GCC" = yes; then
melunko@47
 14175
	case $host_os in aix4.[012]|aix4.[012].*)
melunko@47
 14176
	# We only want to do this on AIX 4.2 and lower, the check
melunko@47
 14177
	# below for broken collect2 doesn't work under 4.3+
melunko@47
 14178
	  collect2name=`${CC} -print-prog-name=collect2`
melunko@47
 14179
	  if test -f "$collect2name" && \
melunko@47
 14180
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
melunko@47
 14181
	  then
melunko@47
 14182
  	  # We have reworked collect2
melunko@47
 14183
  	  hardcode_direct_F77=yes
melunko@47
 14184
	  else
melunko@47
 14185
  	  # We have old collect2
melunko@47
 14186
  	  hardcode_direct_F77=unsupported
melunko@47
 14187
  	  # It fails to find uninstalled libraries when the uninstalled
melunko@47
 14188
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
melunko@47
 14189
  	  # to unsupported forces relinking
melunko@47
 14190
  	  hardcode_minus_L_F77=yes
melunko@47
 14191
  	  hardcode_libdir_flag_spec_F77='-L$libdir'
melunko@47
 14192
  	  hardcode_libdir_separator_F77=
melunko@47
 14193
	  fi
melunko@47
 14194
	esac
melunko@47
 14195
	shared_flag='-shared'
melunko@47
 14196
	if test "$aix_use_runtimelinking" = yes; then
melunko@47
 14197
	  shared_flag="$shared_flag "'${wl}-G'
melunko@47
 14198
	fi
melunko@47
 14199
      else
melunko@47
 14200
	# not using gcc
melunko@47
 14201
	if test "$host_cpu" = ia64; then
melunko@47
 14202
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
melunko@47
 14203
  	# chokes on -Wl,-G. The following line is correct:
melunko@47
 14204
	  shared_flag='-G'
melunko@47
 14205
	else
melunko@47
 14206
  	if test "$aix_use_runtimelinking" = yes; then
melunko@47
 14207
	    shared_flag='${wl}-G'
melunko@47
 14208
	  else
melunko@47
 14209
	    shared_flag='${wl}-bM:SRE'
melunko@47
 14210
  	fi
melunko@47
 14211
	fi
melunko@47
 14212
      fi
melunko@47
 14213
melunko@47
 14214
      # It seems that -bexpall does not export symbols beginning with
melunko@47
 14215
      # underscore (_), so it is better to generate a list of symbols to export.
melunko@47
 14216
      always_export_symbols_F77=yes
melunko@47
 14217
      if test "$aix_use_runtimelinking" = yes; then
melunko@47
 14218
	# Warning - without using the other runtime loading flags (-brtl),
melunko@47
 14219
	# -berok will link without error, but may produce a broken library.
melunko@47
 14220
	allow_undefined_flag_F77='-berok'
melunko@47
 14221
       # Determine the default libpath from the value encoded in an empty executable.
melunko@47
 14222
       cat >conftest.$ac_ext <<_ACEOF
melunko@47
 14223
      program main
melunko@47
 14224
melunko@47
 14225
      end
melunko@47
 14226
_ACEOF
melunko@47
 14227
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 14228
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 14229
  (eval $ac_link) 2>conftest.er1
melunko@47
 14230
  ac_status=$?
melunko@47
 14231
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 14232
  rm -f conftest.er1
melunko@47
 14233
  cat conftest.err >&5
melunko@47
 14234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 14235
  (exit $ac_status); } &&
melunko@47
 14236
	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
melunko@47
 14237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 14238
  (eval $ac_try) 2>&5
melunko@47
 14239
  ac_status=$?
melunko@47
 14240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 14241
  (exit $ac_status); }; } &&
melunko@47
 14242
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 14243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 14244
  (eval $ac_try) 2>&5
melunko@47
 14245
  ac_status=$?
melunko@47
 14246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 14247
  (exit $ac_status); }; }; then
melunko@47
 14248
  
melunko@47
 14249
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
 14250
}'`
melunko@47
 14251
# Check for a 64-bit object if we didn't find anything.
melunko@47
 14252
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
 14253
}'`; fi
melunko@47
 14254
else
melunko@47
 14255
  echo "$as_me: failed program was:" >&5
melunko@47
 14256
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 14257
melunko@47
 14258
fi
melunko@47
 14259
rm -f conftest.err conftest.$ac_objext \
melunko@47
 14260
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 14261
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
melunko@47
 14262
melunko@47
 14263
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
melunko@47
 14264
	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
melunko@47
 14265
       else
melunko@47
 14266
	if test "$host_cpu" = ia64; then
melunko@47
 14267
	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
melunko@47
 14268
	  allow_undefined_flag_F77="-z nodefs"
melunko@47
 14269
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
melunko@47
 14270
	else
melunko@47
 14271
	 # Determine the default libpath from the value encoded in an empty executable.
melunko@47
 14272
	 cat >conftest.$ac_ext <<_ACEOF
melunko@47
 14273
      program main
melunko@47
 14274
melunko@47
 14275
      end
melunko@47
 14276
_ACEOF
melunko@47
 14277
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 14278
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 14279
  (eval $ac_link) 2>conftest.er1
melunko@47
 14280
  ac_status=$?
melunko@47
 14281
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 14282
  rm -f conftest.er1
melunko@47
 14283
  cat conftest.err >&5
melunko@47
 14284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 14285
  (exit $ac_status); } &&
melunko@47
 14286
	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
melunko@47
 14287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 14288
  (eval $ac_try) 2>&5
melunko@47
 14289
  ac_status=$?
melunko@47
 14290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 14291
  (exit $ac_status); }; } &&
melunko@47
 14292
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 14293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 14294
  (eval $ac_try) 2>&5
melunko@47
 14295
  ac_status=$?
melunko@47
 14296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 14297
  (exit $ac_status); }; }; then
melunko@47
 14298
  
melunko@47
 14299
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
 14300
}'`
melunko@47
 14301
# Check for a 64-bit object if we didn't find anything.
melunko@47
 14302
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
 14303
}'`; fi
melunko@47
 14304
else
melunko@47
 14305
  echo "$as_me: failed program was:" >&5
melunko@47
 14306
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 14307
melunko@47
 14308
fi
melunko@47
 14309
rm -f conftest.err conftest.$ac_objext \
melunko@47
 14310
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 14311
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
melunko@47
 14312
melunko@47
 14313
	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
melunko@47
 14314
	  # Warning - without using the other run time loading flags,
melunko@47
 14315
	  # -berok will link without error, but may produce a broken library.
melunko@47
 14316
	  no_undefined_flag_F77=' ${wl}-bernotok'
melunko@47
 14317
	  allow_undefined_flag_F77=' ${wl}-berok'
melunko@47
 14318
	  # -bexpall does not export symbols beginning with underscore (_)
melunko@47
 14319
	  always_export_symbols_F77=yes
melunko@47
 14320
	  # Exported symbols can be pulled into shared objects from archives
melunko@47
 14321
	  whole_archive_flag_spec_F77=' '
melunko@47
 14322
	  archive_cmds_need_lc_F77=yes
melunko@47
 14323
	  # This is similar to how AIX traditionally builds its shared libraries.
melunko@47
 14324
	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
melunko@47
 14325
	fi
melunko@47
 14326
      fi
melunko@47
 14327
      ;;
melunko@47
 14328
melunko@47
 14329
    amigaos*)
melunko@47
 14330
      archive_cmds_F77='$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)'
melunko@47
 14331
      hardcode_libdir_flag_spec_F77='-L$libdir'
melunko@47
 14332
      hardcode_minus_L_F77=yes
melunko@47
 14333
      # see comment about different semantics on the GNU ld section
melunko@47
 14334
      ld_shlibs_F77=no
melunko@47
 14335
      ;;
melunko@47
 14336
melunko@47
 14337
    bsdi[45]*)
melunko@47
 14338
      export_dynamic_flag_spec_F77=-rdynamic
melunko@47
 14339
      ;;
melunko@47
 14340
melunko@47
 14341
    cygwin* | mingw* | pw32*)
melunko@47
 14342
      # When not using gcc, we currently assume that we are using
melunko@47
 14343
      # Microsoft Visual C++.
melunko@47
 14344
      # hardcode_libdir_flag_spec is actually meaningless, as there is
melunko@47
 14345
      # no search path for DLLs.
melunko@47
 14346
      hardcode_libdir_flag_spec_F77=' '
melunko@47
 14347
      allow_undefined_flag_F77=unsupported
melunko@47
 14348
      # Tell ltmain to make .lib files, not .a files.
melunko@47
 14349
      libext=lib
melunko@47
 14350
      # Tell ltmain to make .dll files, not .so files.
melunko@47
 14351
      shrext_cmds=".dll"
melunko@47
 14352
      # FIXME: Setting linknames here is a bad hack.
melunko@47
 14353
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
melunko@47
 14354
      # The linker will automatically build a .lib file if we build a DLL.
melunko@47
 14355
      old_archive_From_new_cmds_F77='true'
melunko@47
 14356
      # FIXME: Should let the user specify the lib program.
melunko@47
 14357
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
melunko@47
 14358
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
melunko@47
 14359
      enable_shared_with_static_runtimes_F77=yes
melunko@47
 14360
      ;;
melunko@47
 14361
melunko@47
 14362
    darwin* | rhapsody*)
melunko@47
 14363
      case $host_os in
melunko@47
 14364
        rhapsody* | darwin1.[012])
melunko@47
 14365
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
melunko@47
 14366
         ;;
melunko@47
 14367
       *) # Darwin 1.3 on
melunko@47
 14368
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
melunko@47
 14369
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
melunko@47
 14370
         else
melunko@47
 14371
           case ${MACOSX_DEPLOYMENT_TARGET} in
melunko@47
 14372
             10.[012])
melunko@47
 14373
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
melunko@47
 14374
               ;;
melunko@47
 14375
             10.*)
melunko@47
 14376
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
melunko@47
 14377
               ;;
melunko@47
 14378
           esac
melunko@47
 14379
         fi
melunko@47
 14380
         ;;
melunko@47
 14381
      esac
melunko@47
 14382
      archive_cmds_need_lc_F77=no
melunko@47
 14383
      hardcode_direct_F77=no
melunko@47
 14384
      hardcode_automatic_F77=yes
melunko@47
 14385
      hardcode_shlibpath_var_F77=unsupported
melunko@47
 14386
      whole_archive_flag_spec_F77=''
melunko@47
 14387
      link_all_deplibs_F77=yes
melunko@47
 14388
    if test "$GCC" = yes ; then
melunko@47
 14389
    	output_verbose_link_cmd='echo'
melunko@47
 14390
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
melunko@47
 14391
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
melunko@47
 14392
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
melunko@47
 14393
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
 14394
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
 14395
    else
melunko@47
 14396
      case $cc_basename in
melunko@47
 14397
        xlc*)
melunko@47
 14398
         output_verbose_link_cmd='echo'
melunko@47
 14399
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
melunko@47
 14400
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
melunko@47
 14401
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
melunko@47
 14402
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
 14403
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
 14404
          ;;
melunko@47
 14405
       *)
melunko@47
 14406
         ld_shlibs_F77=no
melunko@47
 14407
          ;;
melunko@47
 14408
      esac
melunko@47
 14409
    fi
melunko@47
 14410
      ;;
melunko@47
 14411
melunko@47
 14412
    dgux*)
melunko@47
 14413
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14414
      hardcode_libdir_flag_spec_F77='-L$libdir'
melunko@47
 14415
      hardcode_shlibpath_var_F77=no
melunko@47
 14416
      ;;
melunko@47
 14417
melunko@47
 14418
    freebsd1*)
melunko@47
 14419
      ld_shlibs_F77=no
melunko@47
 14420
      ;;
melunko@47
 14421
melunko@47
 14422
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
melunko@47
 14423
    # support.  Future versions do this automatically, but an explicit c++rt0.o
melunko@47
 14424
    # does not break anything, and helps significantly (at the cost of a little
melunko@47
 14425
    # extra space).
melunko@47
 14426
    freebsd2.2*)
melunko@47
 14427
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
melunko@47
 14428
      hardcode_libdir_flag_spec_F77='-R$libdir'
melunko@47
 14429
      hardcode_direct_F77=yes
melunko@47
 14430
      hardcode_shlibpath_var_F77=no
melunko@47
 14431
      ;;
melunko@47
 14432
melunko@47
 14433
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
melunko@47
 14434
    freebsd2*)
melunko@47
 14435
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14436
      hardcode_direct_F77=yes
melunko@47
 14437
      hardcode_minus_L_F77=yes
melunko@47
 14438
      hardcode_shlibpath_var_F77=no
melunko@47
 14439
      ;;
melunko@47
 14440
melunko@47
 14441
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
melunko@47
 14442
    freebsd* | kfreebsd*-gnu | dragonfly*)
melunko@47
 14443
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 14444
      hardcode_libdir_flag_spec_F77='-R$libdir'
melunko@47
 14445
      hardcode_direct_F77=yes
melunko@47
 14446
      hardcode_shlibpath_var_F77=no
melunko@47
 14447
      ;;
melunko@47
 14448
melunko@47
 14449
    hpux9*)
melunko@47
 14450
      if test "$GCC" = yes; then
melunko@47
 14451
	archive_cmds_F77='$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'
melunko@47
 14452
      else
melunko@47
 14453
	archive_cmds_F77='$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'
melunko@47
 14454
      fi
melunko@47
 14455
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
melunko@47
 14456
      hardcode_libdir_separator_F77=:
melunko@47
 14457
      hardcode_direct_F77=yes
melunko@47
 14458
melunko@47
 14459
      # hardcode_minus_L: Not really in the search PATH,
melunko@47
 14460
      # but as the default location of the library.
melunko@47
 14461
      hardcode_minus_L_F77=yes
melunko@47
 14462
      export_dynamic_flag_spec_F77='${wl}-E'
melunko@47
 14463
      ;;
melunko@47
 14464
melunko@47
 14465
    hpux10* | hpux11*)
melunko@47
 14466
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
melunko@47
 14467
	case $host_cpu in
melunko@47
 14468
	hppa*64*|ia64*)
melunko@47
 14469
	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 14470
	  ;;
melunko@47
 14471
	*)
melunko@47
 14472
	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 14473
	  ;;
melunko@47
 14474
	esac
melunko@47
 14475
      else
melunko@47
 14476
	case $host_cpu in
melunko@47
 14477
	hppa*64*|ia64*)
melunko@47
 14478
	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14479
	  ;;
melunko@47
 14480
	*)
melunko@47
 14481
	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14482
	  ;;
melunko@47
 14483
	esac
melunko@47
 14484
      fi
melunko@47
 14485
      if test "$with_gnu_ld" = no; then
melunko@47
 14486
	case $host_cpu in
melunko@47
 14487
	hppa*64*)
melunko@47
 14488
	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
melunko@47
 14489
	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
melunko@47
 14490
	  hardcode_libdir_separator_F77=:
melunko@47
 14491
	  hardcode_direct_F77=no
melunko@47
 14492
	  hardcode_shlibpath_var_F77=no
melunko@47
 14493
	  ;;
melunko@47
 14494
	ia64*)
melunko@47
 14495
	  hardcode_libdir_flag_spec_F77='-L$libdir'
melunko@47
 14496
	  hardcode_direct_F77=no
melunko@47
 14497
	  hardcode_shlibpath_var_F77=no
melunko@47
 14498
melunko@47
 14499
	  # hardcode_minus_L: Not really in the search PATH,
melunko@47
 14500
	  # but as the default location of the library.
melunko@47
 14501
	  hardcode_minus_L_F77=yes
melunko@47
 14502
	  ;;
melunko@47
 14503
	*)
melunko@47
 14504
	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
melunko@47
 14505
	  hardcode_libdir_separator_F77=:
melunko@47
 14506
	  hardcode_direct_F77=yes
melunko@47
 14507
	  export_dynamic_flag_spec_F77='${wl}-E'
melunko@47
 14508
melunko@47
 14509
	  # hardcode_minus_L: Not really in the search PATH,
melunko@47
 14510
	  # but as the default location of the library.
melunko@47
 14511
	  hardcode_minus_L_F77=yes
melunko@47
 14512
	  ;;
melunko@47
 14513
	esac
melunko@47
 14514
      fi
melunko@47
 14515
      ;;
melunko@47
 14516
melunko@47
 14517
    irix5* | irix6* | nonstopux*)
melunko@47
 14518
      if test "$GCC" = yes; then
melunko@47
 14519
	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
melunko@47
 14520
      else
melunko@47
 14521
	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
melunko@47
 14522
	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
melunko@47
 14523
      fi
melunko@47
 14524
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
melunko@47
 14525
      hardcode_libdir_separator_F77=:
melunko@47
 14526
      link_all_deplibs_F77=yes
melunko@47
 14527
      ;;
melunko@47
 14528
melunko@47
 14529
    netbsd*)
melunko@47
 14530
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
melunko@47
 14531
	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
melunko@47
 14532
      else
melunko@47
 14533
	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
melunko@47
 14534
      fi
melunko@47
 14535
      hardcode_libdir_flag_spec_F77='-R$libdir'
melunko@47
 14536
      hardcode_direct_F77=yes
melunko@47
 14537
      hardcode_shlibpath_var_F77=no
melunko@47
 14538
      ;;
melunko@47
 14539
melunko@47
 14540
    newsos6)
melunko@47
 14541
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14542
      hardcode_direct_F77=yes
melunko@47
 14543
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
melunko@47
 14544
      hardcode_libdir_separator_F77=:
melunko@47
 14545
      hardcode_shlibpath_var_F77=no
melunko@47
 14546
      ;;
melunko@47
 14547
melunko@47
 14548
    openbsd*)
melunko@47
 14549
      hardcode_direct_F77=yes
melunko@47
 14550
      hardcode_shlibpath_var_F77=no
melunko@47
 14551
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
melunko@47
 14552
	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 14553
	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
melunko@47
 14554
	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
melunko@47
 14555
	export_dynamic_flag_spec_F77='${wl}-E'
melunko@47
 14556
      else
melunko@47
 14557
       case $host_os in
melunko@47
 14558
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
melunko@47
 14559
	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14560
	   hardcode_libdir_flag_spec_F77='-R$libdir'
melunko@47
 14561
	   ;;
melunko@47
 14562
	 *)
melunko@47
 14563
	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 14564
	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
melunko@47
 14565
	   ;;
melunko@47
 14566
       esac
melunko@47
 14567
      fi
melunko@47
 14568
      ;;
melunko@47
 14569
melunko@47
 14570
    os2*)
melunko@47
 14571
      hardcode_libdir_flag_spec_F77='-L$libdir'
melunko@47
 14572
      hardcode_minus_L_F77=yes
melunko@47
 14573
      allow_undefined_flag_F77=unsupported
melunko@47
 14574
      archive_cmds_F77='$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'
melunko@47
 14575
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
melunko@47
 14576
      ;;
melunko@47
 14577
melunko@47
 14578
    osf3*)
melunko@47
 14579
      if test "$GCC" = yes; then
melunko@47
 14580
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
melunko@47
 14581
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
melunko@47
 14582
      else
melunko@47
 14583
	allow_undefined_flag_F77=' -expect_unresolved \*'
melunko@47
 14584
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
melunko@47
 14585
      fi
melunko@47
 14586
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
melunko@47
 14587
      hardcode_libdir_separator_F77=:
melunko@47
 14588
      ;;
melunko@47
 14589
melunko@47
 14590
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
melunko@47
 14591
      if test "$GCC" = yes; then
melunko@47
 14592
	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
melunko@47
 14593
	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
melunko@47
 14594
	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
melunko@47
 14595
      else
melunko@47
 14596
	allow_undefined_flag_F77=' -expect_unresolved \*'
melunko@47
 14597
	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
melunko@47
 14598
	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
melunko@47
 14599
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
melunko@47
 14600
melunko@47
 14601
	# Both c and cxx compiler support -rpath directly
melunko@47
 14602
	hardcode_libdir_flag_spec_F77='-rpath $libdir'
melunko@47
 14603
      fi
melunko@47
 14604
      hardcode_libdir_separator_F77=:
melunko@47
 14605
      ;;
melunko@47
 14606
melunko@47
 14607
    sco3.2v5*)
melunko@47
 14608
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14609
      hardcode_shlibpath_var_F77=no
melunko@47
 14610
      export_dynamic_flag_spec_F77='${wl}-Bexport'
melunko@47
 14611
      runpath_var=LD_RUN_PATH
melunko@47
 14612
      hardcode_runpath_var=yes
melunko@47
 14613
      ;;
melunko@47
 14614
melunko@47
 14615
    solaris*)
melunko@47
 14616
      no_undefined_flag_F77=' -z text'
melunko@47
 14617
      if test "$GCC" = yes; then
melunko@47
 14618
	wlarc='${wl}'
melunko@47
 14619
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 14620
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
melunko@47
 14621
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
melunko@47
 14622
      else
melunko@47
 14623
	wlarc=''
melunko@47
 14624
	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14625
	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
melunko@47
 14626
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
melunko@47
 14627
      fi
melunko@47
 14628
      hardcode_libdir_flag_spec_F77='-R$libdir'
melunko@47
 14629
      hardcode_shlibpath_var_F77=no
melunko@47
 14630
      case $host_os in
melunko@47
 14631
      solaris2.[0-5] | solaris2.[0-5].*) ;;
melunko@47
 14632
      *)
melunko@47
 14633
 	# The compiler driver will combine linker options so we
melunko@47
 14634
 	# cannot just pass the convience library names through
melunko@47
 14635
 	# without $wl, iff we do not link with $LD.
melunko@47
 14636
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
melunko@47
 14637
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
melunko@47
 14638
 	case $wlarc in
melunko@47
 14639
 	'')
melunko@47
 14640
 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
melunko@47
 14641
 	*)
melunko@47
 14642
 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
melunko@47
 14643
 	esac ;;
melunko@47
 14644
      esac
melunko@47
 14645
      link_all_deplibs_F77=yes
melunko@47
 14646
      ;;
melunko@47
 14647
melunko@47
 14648
    sunos4*)
melunko@47
 14649
      if test "x$host_vendor" = xsequent; then
melunko@47
 14650
	# Use $CC to link under sequent, because it throws in some extra .o
melunko@47
 14651
	# files that make .init and .fini sections work.
melunko@47
 14652
	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 14653
      else
melunko@47
 14654
	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14655
      fi
melunko@47
 14656
      hardcode_libdir_flag_spec_F77='-L$libdir'
melunko@47
 14657
      hardcode_direct_F77=yes
melunko@47
 14658
      hardcode_minus_L_F77=yes
melunko@47
 14659
      hardcode_shlibpath_var_F77=no
melunko@47
 14660
      ;;
melunko@47
 14661
melunko@47
 14662
    sysv4)
melunko@47
 14663
      case $host_vendor in
melunko@47
 14664
	sni)
melunko@47
 14665
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14666
	  hardcode_direct_F77=yes # is this really true???
melunko@47
 14667
	;;
melunko@47
 14668
	siemens)
melunko@47
 14669
	  ## LD is ld it makes a PLAMLIB
melunko@47
 14670
	  ## CC just makes a GrossModule.
melunko@47
 14671
	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14672
	  reload_cmds_F77='$CC -r -o $output$reload_objs'
melunko@47
 14673
	  hardcode_direct_F77=no
melunko@47
 14674
        ;;
melunko@47
 14675
	motorola)
melunko@47
 14676
	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14677
	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
melunko@47
 14678
	;;
melunko@47
 14679
      esac
melunko@47
 14680
      runpath_var='LD_RUN_PATH'
melunko@47
 14681
      hardcode_shlibpath_var_F77=no
melunko@47
 14682
      ;;
melunko@47
 14683
melunko@47
 14684
    sysv4.3*)
melunko@47
 14685
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14686
      hardcode_shlibpath_var_F77=no
melunko@47
 14687
      export_dynamic_flag_spec_F77='-Bexport'
melunko@47
 14688
      ;;
melunko@47
 14689
melunko@47
 14690
    sysv4*MP*)
melunko@47
 14691
      if test -d /usr/nec; then
melunko@47
 14692
	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14693
	hardcode_shlibpath_var_F77=no
melunko@47
 14694
	runpath_var=LD_RUN_PATH
melunko@47
 14695
	hardcode_runpath_var=yes
melunko@47
 14696
	ld_shlibs_F77=yes
melunko@47
 14697
      fi
melunko@47
 14698
      ;;
melunko@47
 14699
melunko@47
 14700
    sysv4.2uw2*)
melunko@47
 14701
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14702
      hardcode_direct_F77=yes
melunko@47
 14703
      hardcode_minus_L_F77=no
melunko@47
 14704
      hardcode_shlibpath_var_F77=no
melunko@47
 14705
      hardcode_runpath_var=yes
melunko@47
 14706
      runpath_var=LD_RUN_PATH
melunko@47
 14707
      ;;
melunko@47
 14708
melunko@47
 14709
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
melunko@47
 14710
      no_undefined_flag_F77='${wl}-z ${wl}text'
melunko@47
 14711
      if test "$GCC" = yes; then
melunko@47
 14712
	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 14713
      else
melunko@47
 14714
	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 14715
      fi
melunko@47
 14716
      runpath_var='LD_RUN_PATH'
melunko@47
 14717
      hardcode_shlibpath_var_F77=no
melunko@47
 14718
      ;;
melunko@47
 14719
melunko@47
 14720
    sysv5*)
melunko@47
 14721
      no_undefined_flag_F77=' -z text'
melunko@47
 14722
      # $CC -shared without GNU ld will not create a library from C++
melunko@47
 14723
      # object files and a static libstdc++, better avoid it by now
melunko@47
 14724
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14725
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
melunko@47
 14726
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
melunko@47
 14727
      hardcode_libdir_flag_spec_F77=
melunko@47
 14728
      hardcode_shlibpath_var_F77=no
melunko@47
 14729
      runpath_var='LD_RUN_PATH'
melunko@47
 14730
      ;;
melunko@47
 14731
melunko@47
 14732
    uts4*)
melunko@47
 14733
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 14734
      hardcode_libdir_flag_spec_F77='-L$libdir'
melunko@47
 14735
      hardcode_shlibpath_var_F77=no
melunko@47
 14736
      ;;
melunko@47
 14737
melunko@47
 14738
    *)
melunko@47
 14739
      ld_shlibs_F77=no
melunko@47
 14740
      ;;
melunko@47
 14741
    esac
melunko@47
 14742
  fi
melunko@47
 14743
melunko@47
 14744
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
melunko@47
 14745
echo "${ECHO_T}$ld_shlibs_F77" >&6
melunko@47
 14746
test "$ld_shlibs_F77" = no && can_build_shared=no
melunko@47
 14747
melunko@47
 14748
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
melunko@47
 14749
if test "$GCC" = yes; then
melunko@47
 14750
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
melunko@47
 14751
fi
melunko@47
 14752
melunko@47
 14753
#
melunko@47
 14754
# Do we need to explicitly link libc?
melunko@47
 14755
#
melunko@47
 14756
case "x$archive_cmds_need_lc_F77" in
melunko@47
 14757
x|xyes)
melunko@47
 14758
  # Assume -lc should be added
melunko@47
 14759
  archive_cmds_need_lc_F77=yes
melunko@47
 14760
melunko@47
 14761
  if test "$enable_shared" = yes && test "$GCC" = yes; then
melunko@47
 14762
    case $archive_cmds_F77 in
melunko@47
 14763
    *'~'*)
melunko@47
 14764
      # FIXME: we may have to deal with multi-command sequences.
melunko@47
 14765
      ;;
melunko@47
 14766
    '$CC '*)
melunko@47
 14767
      # Test whether the compiler implicitly links with -lc since on some
melunko@47
 14768
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
melunko@47
 14769
      # to ld, don't add -lc before -lgcc.
melunko@47
 14770
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
melunko@47
 14771
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
melunko@47
 14772
      $rm conftest*
melunko@47
 14773
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
melunko@47
 14774
melunko@47
 14775
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 14776
  (eval $ac_compile) 2>&5
melunko@47
 14777
  ac_status=$?
melunko@47
 14778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 14779
  (exit $ac_status); } 2>conftest.err; then
melunko@47
 14780
        soname=conftest
melunko@47
 14781
        lib=conftest
melunko@47
 14782
        libobjs=conftest.$ac_objext
melunko@47
 14783
        deplibs=
melunko@47
 14784
        wl=$lt_prog_compiler_wl_F77
melunko@47
 14785
        compiler_flags=-v
melunko@47
 14786
        linker_flags=-v
melunko@47
 14787
        verstring=
melunko@47
 14788
        output_objdir=.
melunko@47
 14789
        libname=conftest
melunko@47
 14790
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
melunko@47
 14791
        allow_undefined_flag_F77=
melunko@47
 14792
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
melunko@47
 14793
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
melunko@47
 14794
  ac_status=$?
melunko@47
 14795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 14796
  (exit $ac_status); }
melunko@47
 14797
        then
melunko@47
 14798
	  archive_cmds_need_lc_F77=no
melunko@47
 14799
        else
melunko@47
 14800
	  archive_cmds_need_lc_F77=yes
melunko@47
 14801
        fi
melunko@47
 14802
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
melunko@47
 14803
      else
melunko@47
 14804
        cat conftest.err 1>&5
melunko@47
 14805
      fi
melunko@47
 14806
      $rm conftest*
melunko@47
 14807
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
melunko@47
 14808
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
melunko@47
 14809
      ;;
melunko@47
 14810
    esac
melunko@47
 14811
  fi
melunko@47
 14812
  ;;
melunko@47
 14813
esac
melunko@47
 14814
melunko@47
 14815
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
melunko@47
 14816
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
melunko@47
 14817
library_names_spec=
melunko@47
 14818
libname_spec='lib$name'
melunko@47
 14819
soname_spec=
melunko@47
 14820
shrext_cmds=".so"
melunko@47
 14821
postinstall_cmds=
melunko@47
 14822
postuninstall_cmds=
melunko@47
 14823
finish_cmds=
melunko@47
 14824
finish_eval=
melunko@47
 14825
shlibpath_var=
melunko@47
 14826
shlibpath_overrides_runpath=unknown
melunko@47
 14827
version_type=none
melunko@47
 14828
dynamic_linker="$host_os ld.so"
melunko@47
 14829
sys_lib_dlsearch_path_spec="/lib /usr/lib"
melunko@47
 14830
if test "$GCC" = yes; then
melunko@47
 14831
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
melunko@47
 14832
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
melunko@47
 14833
    # if the path contains ";" then we assume it to be the separator
melunko@47
 14834
    # otherwise default to the standard path separator (i.e. ":") - it is
melunko@47
 14835
    # assumed that no part of a normal pathname contains ";" but that should
melunko@47
 14836
    # okay in the real world where ";" in dirpaths is itself problematic.
melunko@47
 14837
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
melunko@47
 14838
  else
melunko@47
 14839
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
melunko@47
 14840
  fi
melunko@47
 14841
else
melunko@47
 14842
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
melunko@47
 14843
fi
melunko@47
 14844
need_lib_prefix=unknown
melunko@47
 14845
hardcode_into_libs=no
melunko@47
 14846
melunko@47
 14847
# when you set need_version to no, make sure it does not cause -set_version
melunko@47
 14848
# flags to be left without arguments
melunko@47
 14849
need_version=unknown
melunko@47
 14850
melunko@47
 14851
case $host_os in
melunko@47
 14852
aix3*)
melunko@47
 14853
  version_type=linux
melunko@47
 14854
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
melunko@47
 14855
  shlibpath_var=LIBPATH
melunko@47
 14856
melunko@47
 14857
  # AIX 3 has no versioning support, so we append a major version to the name.
melunko@47
 14858
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 14859
  ;;
melunko@47
 14860
melunko@47
 14861
aix4* | aix5*)
melunko@47
 14862
  version_type=linux
melunko@47
 14863
  need_lib_prefix=no
melunko@47
 14864
  need_version=no
melunko@47
 14865
  hardcode_into_libs=yes
melunko@47
 14866
  if test "$host_cpu" = ia64; then
melunko@47
 14867
    # AIX 5 supports IA64
melunko@47
 14868
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
melunko@47
 14869
    shlibpath_var=LD_LIBRARY_PATH
melunko@47
 14870
  else
melunko@47
 14871
    # With GCC up to 2.95.x, collect2 would create an import file
melunko@47
 14872
    # for dependence libraries.  The import file would start with
melunko@47
 14873
    # the line `#! .'.  This would cause the generated library to
melunko@47
 14874
    # depend on `.', always an invalid library.  This was fixed in
melunko@47
 14875
    # development snapshots of GCC prior to 3.0.
melunko@47
 14876
    case $host_os in
melunko@47
 14877
      aix4 | aix4.[01] | aix4.[01].*)
melunko@47
 14878
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
melunko@47
 14879
	   echo ' yes '
melunko@47
 14880
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
melunko@47
 14881
	:
melunko@47
 14882
      else
melunko@47
 14883
	can_build_shared=no
melunko@47
 14884
      fi
melunko@47
 14885
      ;;
melunko@47
 14886
    esac
melunko@47
 14887
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
melunko@47
 14888
    # soname into executable. Probably we can add versioning support to
melunko@47
 14889
    # collect2, so additional links can be useful in future.
melunko@47
 14890
    if test "$aix_use_runtimelinking" = yes; then
melunko@47
 14891
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
melunko@47
 14892
      # instead of lib<name>.a to let people know that these are not
melunko@47
 14893
      # typical AIX shared libraries.
melunko@47
 14894
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 14895
    else
melunko@47
 14896
      # We preserve .a as extension for shared libraries through AIX4.2
melunko@47
 14897
      # and later when we are not doing run time linking.
melunko@47
 14898
      library_names_spec='${libname}${release}.a $libname.a'
melunko@47
 14899
      soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 14900
    fi
melunko@47
 14901
    shlibpath_var=LIBPATH
melunko@47
 14902
  fi
melunko@47
 14903
  ;;
melunko@47
 14904
melunko@47
 14905
amigaos*)
melunko@47
 14906
  library_names_spec='$libname.ixlibrary $libname.a'
melunko@47
 14907
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
melunko@47
 14908
  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'
melunko@47
 14909
  ;;
melunko@47
 14910
melunko@47
 14911
beos*)
melunko@47
 14912
  library_names_spec='${libname}${shared_ext}'
melunko@47
 14913
  dynamic_linker="$host_os ld.so"
melunko@47
 14914
  shlibpath_var=LIBRARY_PATH
melunko@47
 14915
  ;;
melunko@47
 14916
melunko@47
 14917
bsdi[45]*)
melunko@47
 14918
  version_type=linux
melunko@47
 14919
  need_version=no
melunko@47
 14920
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 14921
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 14922
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
melunko@47
 14923
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 14924
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
melunko@47
 14925
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
melunko@47
 14926
  # the default ld.so.conf also contains /usr/contrib/lib and
melunko@47
 14927
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
melunko@47
 14928
  # libtool to hard-code these into programs
melunko@47
 14929
  ;;
melunko@47
 14930
melunko@47
 14931
cygwin* | mingw* | pw32*)
melunko@47
 14932
  version_type=windows
melunko@47
 14933
  shrext_cmds=".dll"
melunko@47
 14934
  need_version=no
melunko@47
 14935
  need_lib_prefix=no
melunko@47
 14936
melunko@47
 14937
  case $GCC,$host_os in
melunko@47
 14938
  yes,cygwin* | yes,mingw* | yes,pw32*)
melunko@47
 14939
    library_names_spec='$libname.dll.a'
melunko@47
 14940
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
melunko@47
 14941
    postinstall_cmds='base_file=`basename \${file}`~
melunko@47
 14942
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
melunko@47
 14943
      dldir=$destdir/`dirname \$dlpath`~
melunko@47
 14944
      test -d \$dldir || mkdir -p \$dldir~
melunko@47
 14945
      $install_prog $dir/$dlname \$dldir/$dlname~
melunko@47
 14946
      chmod a+x \$dldir/$dlname'
melunko@47
 14947
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
melunko@47
 14948
      dlpath=$dir/\$dldll~
melunko@47
 14949
       $rm \$dlpath'
melunko@47
 14950
    shlibpath_overrides_runpath=yes
melunko@47
 14951
melunko@47
 14952
    case $host_os in
melunko@47
 14953
    cygwin*)
melunko@47
 14954
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
melunko@47
 14955
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
melunko@47
 14956
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
melunko@47
 14957
      ;;
melunko@47
 14958
    mingw*)
melunko@47
 14959
      # MinGW DLLs use traditional 'lib' prefix
melunko@47
 14960
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
melunko@47
 14961
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
melunko@47
 14962
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
melunko@47
 14963
        # It is most probably a Windows format PATH printed by
melunko@47
 14964
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
melunko@47
 14965
        # path with ; separators, and with drive letters. We can handle the
melunko@47
 14966
        # drive letters (cygwin fileutils understands them), so leave them,
melunko@47
 14967
        # especially as we might pass files found there to a mingw objdump,
melunko@47
 14968
        # which wouldn't understand a cygwinified path. Ahh.
melunko@47
 14969
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
melunko@47
 14970
      else
melunko@47
 14971
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
melunko@47
 14972
      fi
melunko@47
 14973
      ;;
melunko@47
 14974
    pw32*)
melunko@47
 14975
      # pw32 DLLs use 'pw' prefix rather than 'lib'
melunko@47
 14976
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
melunko@47
 14977
      ;;
melunko@47
 14978
    esac
melunko@47
 14979
    ;;
melunko@47
 14980
melunko@47
 14981
  *)
melunko@47
 14982
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
melunko@47
 14983
    ;;
melunko@47
 14984
  esac
melunko@47
 14985
  dynamic_linker='Win32 ld.exe'
melunko@47
 14986
  # FIXME: first we should search . and the directory the executable is in
melunko@47
 14987
  shlibpath_var=PATH
melunko@47
 14988
  ;;
melunko@47
 14989
melunko@47
 14990
darwin* | rhapsody*)
melunko@47
 14991
  dynamic_linker="$host_os dyld"
melunko@47
 14992
  version_type=darwin
melunko@47
 14993
  need_lib_prefix=no
melunko@47
 14994
  need_version=no
melunko@47
 14995
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
melunko@47
 14996
  soname_spec='${libname}${release}${major}$shared_ext'
melunko@47
 14997
  shlibpath_overrides_runpath=yes
melunko@47
 14998
  shlibpath_var=DYLD_LIBRARY_PATH
melunko@47
 14999
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
melunko@47
 15000
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
melunko@47
 15001
  if test "$GCC" = yes; then
melunko@47
 15002
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
melunko@47
 15003
  else
melunko@47
 15004
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
melunko@47
 15005
  fi
melunko@47
 15006
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
melunko@47
 15007
  ;;
melunko@47
 15008
melunko@47
 15009
dgux*)
melunko@47
 15010
  version_type=linux
melunko@47
 15011
  need_lib_prefix=no
melunko@47
 15012
  need_version=no
melunko@47
 15013
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
melunko@47
 15014
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15015
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15016
  ;;
melunko@47
 15017
melunko@47
 15018
freebsd1*)
melunko@47
 15019
  dynamic_linker=no
melunko@47
 15020
  ;;
melunko@47
 15021
melunko@47
 15022
kfreebsd*-gnu)
melunko@47
 15023
  version_type=linux
melunko@47
 15024
  need_lib_prefix=no
melunko@47
 15025
  need_version=no
melunko@47
 15026
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
melunko@47
 15027
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15028
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15029
  shlibpath_overrides_runpath=no
melunko@47
 15030
  hardcode_into_libs=yes
melunko@47
 15031
  dynamic_linker='GNU ld.so'
melunko@47
 15032
  ;;
melunko@47
 15033
melunko@47
 15034
freebsd* | dragonfly*)
melunko@47
 15035
  # DragonFly does not have aout.  When/if they implement a new
melunko@47
 15036
  # versioning mechanism, adjust this.
melunko@47
 15037
  if test -x /usr/bin/objformat; then
melunko@47
 15038
    objformat=`/usr/bin/objformat`
melunko@47
 15039
  else
melunko@47
 15040
    case $host_os in
melunko@47
 15041
    freebsd[123]*) objformat=aout ;;
melunko@47
 15042
    *) objformat=elf ;;
melunko@47
 15043
    esac
melunko@47
 15044
  fi
melunko@47
 15045
  version_type=freebsd-$objformat
melunko@47
 15046
  case $version_type in
melunko@47
 15047
    freebsd-elf*)
melunko@47
 15048
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
melunko@47
 15049
      need_version=no
melunko@47
 15050
      need_lib_prefix=no
melunko@47
 15051
      ;;
melunko@47
 15052
    freebsd-*)
melunko@47
 15053
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
melunko@47
 15054
      need_version=yes
melunko@47
 15055
      ;;
melunko@47
 15056
  esac
melunko@47
 15057
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15058
  case $host_os in
melunko@47
 15059
  freebsd2*)
melunko@47
 15060
    shlibpath_overrides_runpath=yes
melunko@47
 15061
    ;;
melunko@47
 15062
  freebsd3.[01]* | freebsdelf3.[01]*)
melunko@47
 15063
    shlibpath_overrides_runpath=yes
melunko@47
 15064
    hardcode_into_libs=yes
melunko@47
 15065
    ;;
melunko@47
 15066
  *) # from 3.2 on
melunko@47
 15067
    shlibpath_overrides_runpath=no
melunko@47
 15068
    hardcode_into_libs=yes
melunko@47
 15069
    ;;
melunko@47
 15070
  esac
melunko@47
 15071
  ;;
melunko@47
 15072
melunko@47
 15073
gnu*)
melunko@47
 15074
  version_type=linux
melunko@47
 15075
  need_lib_prefix=no
melunko@47
 15076
  need_version=no
melunko@47
 15077
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
melunko@47
 15078
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15079
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15080
  hardcode_into_libs=yes
melunko@47
 15081
  ;;
melunko@47
 15082
melunko@47
 15083
hpux9* | hpux10* | hpux11*)
melunko@47
 15084
  # Give a soname corresponding to the major version so that dld.sl refuses to
melunko@47
 15085
  # link against other versions.
melunko@47
 15086
  version_type=sunos
melunko@47
 15087
  need_lib_prefix=no
melunko@47
 15088
  need_version=no
melunko@47
 15089
  case $host_cpu in
melunko@47
 15090
  ia64*)
melunko@47
 15091
    shrext_cmds='.so'
melunko@47
 15092
    hardcode_into_libs=yes
melunko@47
 15093
    dynamic_linker="$host_os dld.so"
melunko@47
 15094
    shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15095
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
melunko@47
 15096
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 15097
    soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15098
    if test "X$HPUX_IA64_MODE" = X32; then
melunko@47
 15099
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
melunko@47
 15100
    else
melunko@47
 15101
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
melunko@47
 15102
    fi
melunko@47
 15103
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
melunko@47
 15104
    ;;
melunko@47
 15105
   hppa*64*)
melunko@47
 15106
     shrext_cmds='.sl'
melunko@47
 15107
     hardcode_into_libs=yes
melunko@47
 15108
     dynamic_linker="$host_os dld.sl"
melunko@47
 15109
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
melunko@47
 15110
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
melunko@47
 15111
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 15112
     soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15113
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
melunko@47
 15114
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
melunko@47
 15115
     ;;
melunko@47
 15116
   *)
melunko@47
 15117
    shrext_cmds='.sl'
melunko@47
 15118
    dynamic_linker="$host_os dld.sl"
melunko@47
 15119
    shlibpath_var=SHLIB_PATH
melunko@47
 15120
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
melunko@47
 15121
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 15122
    soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15123
    ;;
melunko@47
 15124
  esac
melunko@47
 15125
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
melunko@47
 15126
  postinstall_cmds='chmod 555 $lib'
melunko@47
 15127
  ;;
melunko@47
 15128
melunko@47
 15129
irix5* | irix6* | nonstopux*)
melunko@47
 15130
  case $host_os in
melunko@47
 15131
    nonstopux*) version_type=nonstopux ;;
melunko@47
 15132
    *)
melunko@47
 15133
	if test "$lt_cv_prog_gnu_ld" = yes; then
melunko@47
 15134
		version_type=linux
melunko@47
 15135
	else
melunko@47
 15136
		version_type=irix
melunko@47
 15137
	fi ;;
melunko@47
 15138
  esac
melunko@47
 15139
  need_lib_prefix=no
melunko@47
 15140
  need_version=no
melunko@47
 15141
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15142
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
melunko@47
 15143
  case $host_os in
melunko@47
 15144
  irix5* | nonstopux*)
melunko@47
 15145
    libsuff= shlibsuff=
melunko@47
 15146
    ;;
melunko@47
 15147
  *)
melunko@47
 15148
    case $LD in # libtool.m4 will add one of these switches to LD
melunko@47
 15149
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
melunko@47
 15150
      libsuff= shlibsuff= libmagic=32-bit;;
melunko@47
 15151
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
melunko@47
 15152
      libsuff=32 shlibsuff=N32 libmagic=N32;;
melunko@47
 15153
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
melunko@47
 15154
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
melunko@47
 15155
    *) libsuff= shlibsuff= libmagic=never-match;;
melunko@47
 15156
    esac
melunko@47
 15157
    ;;
melunko@47
 15158
  esac
melunko@47
 15159
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
melunko@47
 15160
  shlibpath_overrides_runpath=no
melunko@47
 15161
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
melunko@47
 15162
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
melunko@47
 15163
  hardcode_into_libs=yes
melunko@47
 15164
  ;;
melunko@47
 15165
melunko@47
 15166
# No shared lib support for Linux oldld, aout, or coff.
melunko@47
 15167
linux*oldld* | linux*aout* | linux*coff*)
melunko@47
 15168
  dynamic_linker=no
melunko@47
 15169
  ;;
melunko@47
 15170
melunko@47
 15171
# This must be Linux ELF.
melunko@47
 15172
linux*)
melunko@47
 15173
  version_type=linux
melunko@47
 15174
  need_lib_prefix=no
melunko@47
 15175
  need_version=no
melunko@47
 15176
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 15177
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15178
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
melunko@47
 15179
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15180
  shlibpath_overrides_runpath=no
melunko@47
 15181
  # This implies no fast_install, which is unacceptable.
melunko@47
 15182
  # Some rework will be needed to allow for fast_install
melunko@47
 15183
  # before this can be enabled.
melunko@47
 15184
  hardcode_into_libs=yes
melunko@47
 15185
melunko@47
 15186
  # Append ld.so.conf contents to the search path
melunko@47
 15187
  if test -f /etc/ld.so.conf; then
melunko@47
 15188
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
melunko@47
 15189
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
melunko@47
 15190
  fi
melunko@47
 15191
melunko@47
 15192
  # We used to test for /lib/ld.so.1 and disable shared libraries on
melunko@47
 15193
  # powerpc, because MkLinux only supported shared libraries with the
melunko@47
 15194
  # GNU dynamic linker.  Since this was broken with cross compilers,
melunko@47
 15195
  # most powerpc-linux boxes support dynamic linking these days and
melunko@47
 15196
  # people can always --disable-shared, the test was removed, and we
melunko@47
 15197
  # assume the GNU/Linux dynamic linker is in use.
melunko@47
 15198
  dynamic_linker='GNU/Linux ld.so'
melunko@47
 15199
  ;;
melunko@47
 15200
melunko@47
 15201
knetbsd*-gnu)
melunko@47
 15202
  version_type=linux
melunko@47
 15203
  need_lib_prefix=no
melunko@47
 15204
  need_version=no
melunko@47
 15205
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
melunko@47
 15206
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15207
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15208
  shlibpath_overrides_runpath=no
melunko@47
 15209
  hardcode_into_libs=yes
melunko@47
 15210
  dynamic_linker='GNU ld.so'
melunko@47
 15211
  ;;
melunko@47
 15212
melunko@47
 15213
netbsd*)
melunko@47
 15214
  version_type=sunos
melunko@47
 15215
  need_lib_prefix=no
melunko@47
 15216
  need_version=no
melunko@47
 15217
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
melunko@47
 15218
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
melunko@47
 15219
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
melunko@47
 15220
    dynamic_linker='NetBSD (a.out) ld.so'
melunko@47
 15221
  else
melunko@47
 15222
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
melunko@47
 15223
    soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15224
    dynamic_linker='NetBSD ld.elf_so'
melunko@47
 15225
  fi
melunko@47
 15226
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15227
  shlibpath_overrides_runpath=yes
melunko@47
 15228
  hardcode_into_libs=yes
melunko@47
 15229
  ;;
melunko@47
 15230
melunko@47
 15231
newsos6)
melunko@47
 15232
  version_type=linux
melunko@47
 15233
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 15234
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15235
  shlibpath_overrides_runpath=yes
melunko@47
 15236
  ;;
melunko@47
 15237
melunko@47
 15238
nto-qnx*)
melunko@47
 15239
  version_type=linux
melunko@47
 15240
  need_lib_prefix=no
melunko@47
 15241
  need_version=no
melunko@47
 15242
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 15243
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15244
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15245
  shlibpath_overrides_runpath=yes
melunko@47
 15246
  ;;
melunko@47
 15247
melunko@47
 15248
openbsd*)
melunko@47
 15249
  version_type=sunos
melunko@47
 15250
  need_lib_prefix=no
melunko@47
 15251
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
melunko@47
 15252
  case $host_os in
melunko@47
 15253
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
melunko@47
 15254
    *)                         need_version=no  ;;
melunko@47
 15255
  esac
melunko@47
 15256
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
melunko@47
 15257
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
melunko@47
 15258
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15259
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
melunko@47
 15260
    case $host_os in
melunko@47
 15261
      openbsd2.[89] | openbsd2.[89].*)
melunko@47
 15262
	shlibpath_overrides_runpath=no
melunko@47
 15263
	;;
melunko@47
 15264
      *)
melunko@47
 15265
	shlibpath_overrides_runpath=yes
melunko@47
 15266
	;;
melunko@47
 15267
      esac
melunko@47
 15268
  else
melunko@47
 15269
    shlibpath_overrides_runpath=yes
melunko@47
 15270
  fi
melunko@47
 15271
  ;;
melunko@47
 15272
melunko@47
 15273
os2*)
melunko@47
 15274
  libname_spec='$name'
melunko@47
 15275
  shrext_cmds=".dll"
melunko@47
 15276
  need_lib_prefix=no
melunko@47
 15277
  library_names_spec='$libname${shared_ext} $libname.a'
melunko@47
 15278
  dynamic_linker='OS/2 ld.exe'
melunko@47
 15279
  shlibpath_var=LIBPATH
melunko@47
 15280
  ;;
melunko@47
 15281
melunko@47
 15282
osf3* | osf4* | osf5*)
melunko@47
 15283
  version_type=osf
melunko@47
 15284
  need_lib_prefix=no
melunko@47
 15285
  need_version=no
melunko@47
 15286
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15287
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 15288
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15289
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
melunko@47
 15290
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
melunko@47
 15291
  ;;
melunko@47
 15292
melunko@47
 15293
sco3.2v5*)
melunko@47
 15294
  version_type=osf
melunko@47
 15295
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15296
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 15297
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15298
  ;;
melunko@47
 15299
melunko@47
 15300
solaris*)
melunko@47
 15301
  version_type=linux
melunko@47
 15302
  need_lib_prefix=no
melunko@47
 15303
  need_version=no
melunko@47
 15304
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 15305
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15306
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15307
  shlibpath_overrides_runpath=yes
melunko@47
 15308
  hardcode_into_libs=yes
melunko@47
 15309
  # ldd complains unless libraries are executable
melunko@47
 15310
  postinstall_cmds='chmod +x $lib'
melunko@47
 15311
  ;;
melunko@47
 15312
melunko@47
 15313
sunos4*)
melunko@47
 15314
  version_type=sunos
melunko@47
 15315
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
melunko@47
 15316
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
melunko@47
 15317
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15318
  shlibpath_overrides_runpath=yes
melunko@47
 15319
  if test "$with_gnu_ld" = yes; then
melunko@47
 15320
    need_lib_prefix=no
melunko@47
 15321
  fi
melunko@47
 15322
  need_version=yes
melunko@47
 15323
  ;;
melunko@47
 15324
melunko@47
 15325
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
melunko@47
 15326
  version_type=linux
melunko@47
 15327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 15328
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15329
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15330
  case $host_vendor in
melunko@47
 15331
    sni)
melunko@47
 15332
      shlibpath_overrides_runpath=no
melunko@47
 15333
      need_lib_prefix=no
melunko@47
 15334
      export_dynamic_flag_spec='${wl}-Blargedynsym'
melunko@47
 15335
      runpath_var=LD_RUN_PATH
melunko@47
 15336
      ;;
melunko@47
 15337
    siemens)
melunko@47
 15338
      need_lib_prefix=no
melunko@47
 15339
      ;;
melunko@47
 15340
    motorola)
melunko@47
 15341
      need_lib_prefix=no
melunko@47
 15342
      need_version=no
melunko@47
 15343
      shlibpath_overrides_runpath=no
melunko@47
 15344
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
melunko@47
 15345
      ;;
melunko@47
 15346
  esac
melunko@47
 15347
  ;;
melunko@47
 15348
melunko@47
 15349
sysv4*MP*)
melunko@47
 15350
  if test -d /usr/nec ;then
melunko@47
 15351
    version_type=linux
melunko@47
 15352
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
melunko@47
 15353
    soname_spec='$libname${shared_ext}.$major'
melunko@47
 15354
    shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15355
  fi
melunko@47
 15356
  ;;
melunko@47
 15357
melunko@47
 15358
uts4*)
melunko@47
 15359
  version_type=linux
melunko@47
 15360
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 15361
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 15362
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 15363
  ;;
melunko@47
 15364
melunko@47
 15365
*)
melunko@47
 15366
  dynamic_linker=no
melunko@47
 15367
  ;;
melunko@47
 15368
esac
melunko@47
 15369
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
melunko@47
 15370
echo "${ECHO_T}$dynamic_linker" >&6
melunko@47
 15371
test "$dynamic_linker" = no && can_build_shared=no
melunko@47
 15372
melunko@47
 15373
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
melunko@47
 15374
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
melunko@47
 15375
hardcode_action_F77=
melunko@47
 15376
if test -n "$hardcode_libdir_flag_spec_F77" || \
melunko@47
 15377
   test -n "$runpath_var_F77" || \
melunko@47
 15378
   test "X$hardcode_automatic_F77" = "Xyes" ; then
melunko@47
 15379
melunko@47
 15380
  # We can hardcode non-existant directories.
melunko@47
 15381
  if test "$hardcode_direct_F77" != no &&
melunko@47
 15382
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
melunko@47
 15383
     # have to relink, otherwise we might link with an installed library
melunko@47
 15384
     # when we should be linking with a yet-to-be-installed one
melunko@47
 15385
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
melunko@47
 15386
     test "$hardcode_minus_L_F77" != no; then
melunko@47
 15387
    # Linking always hardcodes the temporary library directory.
melunko@47
 15388
    hardcode_action_F77=relink
melunko@47
 15389
  else
melunko@47
 15390
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
melunko@47
 15391
    hardcode_action_F77=immediate
melunko@47
 15392
  fi
melunko@47
 15393
else
melunko@47
 15394
  # We cannot hardcode anything, or else we can only hardcode existing
melunko@47
 15395
  # directories.
melunko@47
 15396
  hardcode_action_F77=unsupported
melunko@47
 15397
fi
melunko@47
 15398
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
melunko@47
 15399
echo "${ECHO_T}$hardcode_action_F77" >&6
melunko@47
 15400
melunko@47
 15401
if test "$hardcode_action_F77" = relink; then
melunko@47
 15402
  # Fast installation is not supported
melunko@47
 15403
  enable_fast_install=no
melunko@47
 15404
elif test "$shlibpath_overrides_runpath" = yes ||
melunko@47
 15405
     test "$enable_shared" = no; then
melunko@47
 15406
  # Fast installation is not necessary
melunko@47
 15407
  enable_fast_install=needless
melunko@47
 15408
fi
melunko@47
 15409
melunko@47
 15410
striplib=
melunko@47
 15411
old_striplib=
melunko@47
 15412
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
melunko@47
 15413
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
melunko@47
 15414
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
melunko@47
 15415
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
melunko@47
 15416
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
melunko@47
 15417
  echo "$as_me:$LINENO: result: yes" >&5
melunko@47
 15418
echo "${ECHO_T}yes" >&6
melunko@47
 15419
else
melunko@47
 15420
# FIXME - insert some real tests, host_os isn't really good enough
melunko@47
 15421
  case $host_os in
melunko@47
 15422
   darwin*)
melunko@47
 15423
       if test -n "$STRIP" ; then
melunko@47
 15424
         striplib="$STRIP -x"
melunko@47
 15425
         echo "$as_me:$LINENO: result: yes" >&5
melunko@47
 15426
echo "${ECHO_T}yes" >&6
melunko@47
 15427
       else
melunko@47
 15428
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 15429
echo "${ECHO_T}no" >&6
melunko@47
 15430
fi
melunko@47
 15431
       ;;
melunko@47
 15432
   *)
melunko@47
 15433
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 15434
echo "${ECHO_T}no" >&6
melunko@47
 15435
    ;;
melunko@47
 15436
  esac
melunko@47
 15437
fi
melunko@47
 15438
melunko@47
 15439
melunko@47
 15440
melunko@47
 15441
# The else clause should only fire when bootstrapping the
melunko@47
 15442
# libtool distribution, otherwise you forgot to ship ltmain.sh
melunko@47
 15443
# with your package, and you will get complaints that there are
melunko@47
 15444
# no rules to generate ltmain.sh.
melunko@47
 15445
if test -f "$ltmain"; then
melunko@47
 15446
  # See if we are running on zsh, and set the options which allow our commands through
melunko@47
 15447
  # without removal of \ escapes.
melunko@47
 15448
  if test -n "${ZSH_VERSION+set}" ; then
melunko@47
 15449
    setopt NO_GLOB_SUBST
melunko@47
 15450
  fi
melunko@47
 15451
  # Now quote all the things that may contain metacharacters while being
melunko@47
 15452
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
melunko@47
 15453
  # variables and quote the copies for generation of the libtool script.
melunko@47
 15454
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
melunko@47
 15455
    SED SHELL STRIP \
melunko@47
 15456
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
melunko@47
 15457
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
melunko@47
 15458
    deplibs_check_method reload_flag reload_cmds need_locks \
melunko@47
 15459
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
melunko@47
 15460
    lt_cv_sys_global_symbol_to_c_name_address \
melunko@47
 15461
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
melunko@47
 15462
    old_postinstall_cmds old_postuninstall_cmds \
melunko@47
 15463
    compiler_F77 \
melunko@47
 15464
    CC_F77 \
melunko@47
 15465
    LD_F77 \
melunko@47
 15466
    lt_prog_compiler_wl_F77 \
melunko@47
 15467
    lt_prog_compiler_pic_F77 \
melunko@47
 15468
    lt_prog_compiler_static_F77 \
melunko@47
 15469
    lt_prog_compiler_no_builtin_flag_F77 \
melunko@47
 15470
    export_dynamic_flag_spec_F77 \
melunko@47
 15471
    thread_safe_flag_spec_F77 \
melunko@47
 15472
    whole_archive_flag_spec_F77 \
melunko@47
 15473
    enable_shared_with_static_runtimes_F77 \
melunko@47
 15474
    old_archive_cmds_F77 \
melunko@47
 15475
    old_archive_from_new_cmds_F77 \
melunko@47
 15476
    predep_objects_F77 \
melunko@47
 15477
    postdep_objects_F77 \
melunko@47
 15478
    predeps_F77 \
melunko@47
 15479
    postdeps_F77 \
melunko@47
 15480
    compiler_lib_search_path_F77 \
melunko@47
 15481
    archive_cmds_F77 \
melunko@47
 15482
    archive_expsym_cmds_F77 \
melunko@47
 15483
    postinstall_cmds_F77 \
melunko@47
 15484
    postuninstall_cmds_F77 \
melunko@47
 15485
    old_archive_from_expsyms_cmds_F77 \
melunko@47
 15486
    allow_undefined_flag_F77 \
melunko@47
 15487
    no_undefined_flag_F77 \
melunko@47
 15488
    export_symbols_cmds_F77 \
melunko@47
 15489
    hardcode_libdir_flag_spec_F77 \
melunko@47
 15490
    hardcode_libdir_flag_spec_ld_F77 \
melunko@47
 15491
    hardcode_libdir_separator_F77 \
melunko@47
 15492
    hardcode_automatic_F77 \
melunko@47
 15493
    module_cmds_F77 \
melunko@47
 15494
    module_expsym_cmds_F77 \
melunko@47
 15495
    lt_cv_prog_compiler_c_o_F77 \
melunko@47
 15496
    exclude_expsyms_F77 \
melunko@47
 15497
    include_expsyms_F77; do
melunko@47
 15498
melunko@47
 15499
    case $var in
melunko@47
 15500
    old_archive_cmds_F77 | \
melunko@47
 15501
    old_archive_from_new_cmds_F77 | \
melunko@47
 15502
    archive_cmds_F77 | \
melunko@47
 15503
    archive_expsym_cmds_F77 | \
melunko@47
 15504
    module_cmds_F77 | \
melunko@47
 15505
    module_expsym_cmds_F77 | \
melunko@47
 15506
    old_archive_from_expsyms_cmds_F77 | \
melunko@47
 15507
    export_symbols_cmds_F77 | \
melunko@47
 15508
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
melunko@47
 15509
    postinstall_cmds | postuninstall_cmds | \
melunko@47
 15510
    old_postinstall_cmds | old_postuninstall_cmds | \
melunko@47
 15511
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
melunko@47
 15512
      # Double-quote double-evaled strings.
melunko@47
 15513
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
melunko@47
 15514
      ;;
melunko@47
 15515
    *)
melunko@47
 15516
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
melunko@47
 15517
      ;;
melunko@47
 15518
    esac
melunko@47
 15519
  done
melunko@47
 15520
melunko@47
 15521
  case $lt_echo in
melunko@47
 15522
  *'\$0 --fallback-echo"')
melunko@47
 15523
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
melunko@47
 15524
    ;;
melunko@47
 15525
  esac
melunko@47
 15526
melunko@47
 15527
cfgfile="$ofile"
melunko@47
 15528
melunko@47
 15529
  cat <<__EOF__ >> "$cfgfile"
melunko@47
 15530
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
melunko@47
 15531
melunko@47
 15532
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
melunko@47
 15533
melunko@47
 15534
# Shell to use when invoking shell scripts.
melunko@47
 15535
SHELL=$lt_SHELL
melunko@47
 15536
melunko@47
 15537
# Whether or not to build shared libraries.
melunko@47
 15538
build_libtool_libs=$enable_shared
melunko@47
 15539
melunko@47
 15540
# Whether or not to build static libraries.
melunko@47
 15541
build_old_libs=$enable_static
melunko@47
 15542
melunko@47
 15543
# Whether or not to add -lc for building shared libraries.
melunko@47
 15544
build_libtool_need_lc=$archive_cmds_need_lc_F77
melunko@47
 15545
melunko@47
 15546
# Whether or not to disallow shared libs when runtime libs are static
melunko@47
 15547
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
melunko@47
 15548
melunko@47
 15549
# Whether or not to optimize for fast installation.
melunko@47
 15550
fast_install=$enable_fast_install
melunko@47
 15551
melunko@47
 15552
# The host system.
melunko@47
 15553
host_alias=$host_alias
melunko@47
 15554
host=$host
melunko@47
 15555
host_os=$host_os
melunko@47
 15556
melunko@47
 15557
# The build system.
melunko@47
 15558
build_alias=$build_alias
melunko@47
 15559
build=$build
melunko@47
 15560
build_os=$build_os
melunko@47
 15561
melunko@47
 15562
# An echo program that does not interpret backslashes.
melunko@47
 15563
echo=$lt_echo
melunko@47
 15564
melunko@47
 15565
# The archiver.
melunko@47
 15566
AR=$lt_AR
melunko@47
 15567
AR_FLAGS=$lt_AR_FLAGS
melunko@47
 15568
melunko@47
 15569
# A C compiler.
melunko@47
 15570
LTCC=$lt_LTCC
melunko@47
 15571
melunko@47
 15572
# A language-specific compiler.
melunko@47
 15573
CC=$lt_compiler_F77
melunko@47
 15574
melunko@47
 15575
# Is the compiler the GNU C compiler?
melunko@47
 15576
with_gcc=$GCC_F77
melunko@47
 15577
melunko@47
 15578
# An ERE matcher.
melunko@47
 15579
EGREP=$lt_EGREP
melunko@47
 15580
melunko@47
 15581
# The linker used to build libraries.
melunko@47
 15582
LD=$lt_LD_F77
melunko@47
 15583
melunko@47
 15584
# Whether we need hard or soft links.
melunko@47
 15585
LN_S=$lt_LN_S
melunko@47
 15586
melunko@47
 15587
# A BSD-compatible nm program.
melunko@47
 15588
NM=$lt_NM
melunko@47
 15589
melunko@47
 15590
# A symbol stripping program
melunko@47
 15591
STRIP=$lt_STRIP
melunko@47
 15592
melunko@47
 15593
# Used to examine libraries when file_magic_cmd begins "file"
melunko@47
 15594
MAGIC_CMD=$MAGIC_CMD
melunko@47
 15595
melunko@47
 15596
# Used on cygwin: DLL creation program.
melunko@47
 15597
DLLTOOL="$DLLTOOL"
melunko@47
 15598
melunko@47
 15599
# Used on cygwin: object dumper.
melunko@47
 15600
OBJDUMP="$OBJDUMP"
melunko@47
 15601
melunko@47
 15602
# Used on cygwin: assembler.
melunko@47
 15603
AS="$AS"
melunko@47
 15604
melunko@47
 15605
# The name of the directory that contains temporary libtool files.
melunko@47
 15606
objdir=$objdir
melunko@47
 15607
melunko@47
 15608
# How to create reloadable object files.
melunko@47
 15609
reload_flag=$lt_reload_flag
melunko@47
 15610
reload_cmds=$lt_reload_cmds
melunko@47
 15611
melunko@47
 15612
# How to pass a linker flag through the compiler.
melunko@47
 15613
wl=$lt_lt_prog_compiler_wl_F77
melunko@47
 15614
melunko@47
 15615
# Object file suffix (normally "o").
melunko@47
 15616
objext="$ac_objext"
melunko@47
 15617
melunko@47
 15618
# Old archive suffix (normally "a").
melunko@47
 15619
libext="$libext"
melunko@47
 15620
melunko@47
 15621
# Shared library suffix (normally ".so").
melunko@47
 15622
shrext_cmds='$shrext_cmds'
melunko@47
 15623
melunko@47
 15624
# Executable file suffix (normally "").
melunko@47
 15625
exeext="$exeext"
melunko@47
 15626
melunko@47
 15627
# Additional compiler flags for building library objects.
melunko@47
 15628
pic_flag=$lt_lt_prog_compiler_pic_F77
melunko@47
 15629
pic_mode=$pic_mode
melunko@47
 15630
melunko@47
 15631
# What is the maximum length of a command?
melunko@47
 15632
max_cmd_len=$lt_cv_sys_max_cmd_len
melunko@47
 15633
melunko@47
 15634
# Does compiler simultaneously support -c and -o options?
melunko@47
 15635
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
melunko@47
 15636
melunko@47
 15637
# Must we lock files when doing compilation?
melunko@47
 15638
need_locks=$lt_need_locks
melunko@47
 15639
melunko@47
 15640
# Do we need the lib prefix for modules?
melunko@47
 15641
need_lib_prefix=$need_lib_prefix
melunko@47
 15642
melunko@47
 15643
# Do we need a version for libraries?
melunko@47
 15644
need_version=$need_version
melunko@47
 15645
melunko@47
 15646
# Whether dlopen is supported.
melunko@47
 15647
dlopen_support=$enable_dlopen
melunko@47
 15648
melunko@47
 15649
# Whether dlopen of programs is supported.
melunko@47
 15650
dlopen_self=$enable_dlopen_self
melunko@47
 15651
melunko@47
 15652
# Whether dlopen of statically linked programs is supported.
melunko@47
 15653
dlopen_self_static=$enable_dlopen_self_static
melunko@47
 15654
melunko@47
 15655
# Compiler flag to prevent dynamic linking.
melunko@47
 15656
link_static_flag=$lt_lt_prog_compiler_static_F77
melunko@47
 15657
melunko@47
 15658
# Compiler flag to turn off builtin functions.
melunko@47
 15659
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
melunko@47
 15660
melunko@47
 15661
# Compiler flag to allow reflexive dlopens.
melunko@47
 15662
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
melunko@47
 15663
melunko@47
 15664
# Compiler flag to generate shared objects directly from archives.
melunko@47
 15665
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
melunko@47
 15666
melunko@47
 15667
# Compiler flag to generate thread-safe objects.
melunko@47
 15668
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
melunko@47
 15669
melunko@47
 15670
# Library versioning type.
melunko@47
 15671
version_type=$version_type
melunko@47
 15672
melunko@47
 15673
# Format of library name prefix.
melunko@47
 15674
libname_spec=$lt_libname_spec
melunko@47
 15675
melunko@47
 15676
# List of archive names.  First name is the real one, the rest are links.
melunko@47
 15677
# The last name is the one that the linker finds with -lNAME.
melunko@47
 15678
library_names_spec=$lt_library_names_spec
melunko@47
 15679
melunko@47
 15680
# The coded name of the library, if different from the real name.
melunko@47
 15681
soname_spec=$lt_soname_spec
melunko@47
 15682
melunko@47
 15683
# Commands used to build and install an old-style archive.
melunko@47
 15684
RANLIB=$lt_RANLIB
melunko@47
 15685
old_archive_cmds=$lt_old_archive_cmds_F77
melunko@47
 15686
old_postinstall_cmds=$lt_old_postinstall_cmds
melunko@47
 15687
old_postuninstall_cmds=$lt_old_postuninstall_cmds
melunko@47
 15688
melunko@47
 15689
# Create an old-style archive from a shared archive.
melunko@47
 15690
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
melunko@47
 15691
melunko@47
 15692
# Create a temporary old-style archive to link instead of a shared archive.
melunko@47
 15693
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
melunko@47
 15694
melunko@47
 15695
# Commands used to build and install a shared archive.
melunko@47
 15696
archive_cmds=$lt_archive_cmds_F77
melunko@47
 15697
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
melunko@47
 15698
postinstall_cmds=$lt_postinstall_cmds
melunko@47
 15699
postuninstall_cmds=$lt_postuninstall_cmds
melunko@47
 15700
melunko@47
 15701
# Commands used to build a loadable module (assumed same as above if empty)
melunko@47
 15702
module_cmds=$lt_module_cmds_F77
melunko@47
 15703
module_expsym_cmds=$lt_module_expsym_cmds_F77
melunko@47
 15704
melunko@47
 15705
# Commands to strip libraries.
melunko@47
 15706
old_striplib=$lt_old_striplib
melunko@47
 15707
striplib=$lt_striplib
melunko@47
 15708
melunko@47
 15709
# Dependencies to place before the objects being linked to create a
melunko@47
 15710
# shared library.
melunko@47
 15711
predep_objects=$lt_predep_objects_F77
melunko@47
 15712
melunko@47
 15713
# Dependencies to place after the objects being linked to create a
melunko@47
 15714
# shared library.
melunko@47
 15715
postdep_objects=$lt_postdep_objects_F77
melunko@47
 15716
melunko@47
 15717
# Dependencies to place before the objects being linked to create a
melunko@47
 15718
# shared library.
melunko@47
 15719
predeps=$lt_predeps_F77
melunko@47
 15720
melunko@47
 15721
# Dependencies to place after the objects being linked to create a
melunko@47
 15722
# shared library.
melunko@47
 15723
postdeps=$lt_postdeps_F77
melunko@47
 15724
melunko@47
 15725
# The library search path used internally by the compiler when linking
melunko@47
 15726
# a shared library.
melunko@47
 15727
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
melunko@47
 15728
melunko@47
 15729
# Method to check whether dependent libraries are shared objects.
melunko@47
 15730
deplibs_check_method=$lt_deplibs_check_method
melunko@47
 15731
melunko@47
 15732
# Command to use when deplibs_check_method == file_magic.
melunko@47
 15733
file_magic_cmd=$lt_file_magic_cmd
melunko@47
 15734
melunko@47
 15735
# Flag that allows shared libraries with undefined symbols to be built.
melunko@47
 15736
allow_undefined_flag=$lt_allow_undefined_flag_F77
melunko@47
 15737
melunko@47
 15738
# Flag that forces no undefined symbols.
melunko@47
 15739
no_undefined_flag=$lt_no_undefined_flag_F77
melunko@47
 15740
melunko@47
 15741
# Commands used to finish a libtool library installation in a directory.
melunko@47
 15742
finish_cmds=$lt_finish_cmds
melunko@47
 15743
melunko@47
 15744
# Same as above, but a single script fragment to be evaled but not shown.
melunko@47
 15745
finish_eval=$lt_finish_eval
melunko@47
 15746
melunko@47
 15747
# Take the output of nm and produce a listing of raw symbols and C names.
melunko@47
 15748
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
melunko@47
 15749
melunko@47
 15750
# Transform the output of nm in a proper C declaration
melunko@47
 15751
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
melunko@47
 15752
melunko@47
 15753
# Transform the output of nm in a C name address pair
melunko@47
 15754
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
melunko@47
 15755
melunko@47
 15756
# This is the shared library runtime path variable.
melunko@47
 15757
runpath_var=$runpath_var
melunko@47
 15758
melunko@47
 15759
# This is the shared library path variable.
melunko@47
 15760
shlibpath_var=$shlibpath_var
melunko@47
 15761
melunko@47
 15762
# Is shlibpath searched before the hard-coded library search path?
melunko@47
 15763
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
melunko@47
 15764
melunko@47
 15765
# How to hardcode a shared library path into an executable.
melunko@47
 15766
hardcode_action=$hardcode_action_F77
melunko@47
 15767
melunko@47
 15768
# Whether we should hardcode library paths into libraries.
melunko@47
 15769
hardcode_into_libs=$hardcode_into_libs
melunko@47
 15770
melunko@47
 15771
# Flag to hardcode \$libdir into a binary during linking.
melunko@47
 15772
# This must work even if \$libdir does not exist.
melunko@47
 15773
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
melunko@47
 15774
melunko@47
 15775
# If ld is used when linking, flag to hardcode \$libdir into
melunko@47
 15776
# a binary during linking. This must work even if \$libdir does
melunko@47
 15777
# not exist.
melunko@47
 15778
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
melunko@47
 15779
melunko@47
 15780
# Whether we need a single -rpath flag with a separated argument.
melunko@47
 15781
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
melunko@47
 15782
melunko@47
 15783
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
melunko@47
 15784
# resulting binary.
melunko@47
 15785
hardcode_direct=$hardcode_direct_F77
melunko@47
 15786
melunko@47
 15787
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
melunko@47
 15788
# resulting binary.
melunko@47
 15789
hardcode_minus_L=$hardcode_minus_L_F77
melunko@47
 15790
melunko@47
 15791
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
melunko@47
 15792
# the resulting binary.
melunko@47
 15793
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
melunko@47
 15794
melunko@47
 15795
# Set to yes if building a shared library automatically hardcodes DIR into the library
melunko@47
 15796
# and all subsequent libraries and executables linked against it.
melunko@47
 15797
hardcode_automatic=$hardcode_automatic_F77
melunko@47
 15798
melunko@47
 15799
# Variables whose values should be saved in libtool wrapper scripts and
melunko@47
 15800
# restored at relink time.
melunko@47
 15801
variables_saved_for_relink="$variables_saved_for_relink"
melunko@47
 15802
melunko@47
 15803
# Whether libtool must link a program against all its dependency libraries.
melunko@47
 15804
link_all_deplibs=$link_all_deplibs_F77
melunko@47
 15805
melunko@47
 15806
# Compile-time system search path for libraries
melunko@47
 15807
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
melunko@47
 15808
melunko@47
 15809
# Run-time system search path for libraries
melunko@47
 15810
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
melunko@47
 15811
melunko@47
 15812
# Fix the shell variable \$srcfile for the compiler.
melunko@47
 15813
fix_srcfile_path="$fix_srcfile_path_F77"
melunko@47
 15814
melunko@47
 15815
# Set to yes if exported symbols are required.
melunko@47
 15816
always_export_symbols=$always_export_symbols_F77
melunko@47
 15817
melunko@47
 15818
# The commands to list exported symbols.
melunko@47
 15819
export_symbols_cmds=$lt_export_symbols_cmds_F77
melunko@47
 15820
melunko@47
 15821
# The commands to extract the exported symbol list from a shared archive.
melunko@47
 15822
extract_expsyms_cmds=$lt_extract_expsyms_cmds
melunko@47
 15823
melunko@47
 15824
# Symbols that should not be listed in the preloaded symbols.
melunko@47
 15825
exclude_expsyms=$lt_exclude_expsyms_F77
melunko@47
 15826
melunko@47
 15827
# Symbols that must always be exported.
melunko@47
 15828
include_expsyms=$lt_include_expsyms_F77
melunko@47
 15829
melunko@47
 15830
# ### END LIBTOOL TAG CONFIG: $tagname
melunko@47
 15831
melunko@47
 15832
__EOF__
melunko@47
 15833
melunko@47
 15834
melunko@47
 15835
else
melunko@47
 15836
  # If there is no Makefile yet, we rely on a make rule to execute
melunko@47
 15837
  # `config.status --recheck' to rerun these tests and create the
melunko@47
 15838
  # libtool script then.
melunko@47
 15839
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
melunko@47
 15840
  if test -f "$ltmain_in"; then
melunko@47
 15841
    test -f Makefile && make "$ltmain"
melunko@47
 15842
  fi
melunko@47
 15843
fi
melunko@47
 15844
melunko@47
 15845
melunko@47
 15846
ac_ext=c
melunko@47
 15847
ac_cpp='$CPP $CPPFLAGS'
melunko@47
 15848
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
 15849
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
 15850
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
 15851
melunko@47
 15852
CC="$lt_save_CC"
melunko@47
 15853
melunko@47
 15854
	else
melunko@47
 15855
	  tagname=""
melunko@47
 15856
	fi
melunko@47
 15857
	;;
melunko@47
 15858
melunko@47
 15859
      GCJ)
melunko@47
 15860
	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
melunko@47
 15861
	  
melunko@47
 15862
melunko@47
 15863
melunko@47
 15864
# Source file extension for Java test sources.
melunko@47
 15865
ac_ext=java
melunko@47
 15866
melunko@47
 15867
# Object file extension for compiled Java test sources.
melunko@47
 15868
objext=o
melunko@47
 15869
objext_GCJ=$objext
melunko@47
 15870
melunko@47
 15871
# Code to be used in simple compile tests
melunko@47
 15872
lt_simple_compile_test_code="class foo {}\n"
melunko@47
 15873
melunko@47
 15874
# Code to be used in simple link tests
melunko@47
 15875
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
melunko@47
 15876
melunko@47
 15877
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
melunko@47
 15878
melunko@47
 15879
# If no C compiler was specified, use CC.
melunko@47
 15880
LTCC=${LTCC-"$CC"}
melunko@47
 15881
melunko@47
 15882
# Allow CC to be a program name with arguments.
melunko@47
 15883
compiler=$CC
melunko@47
 15884
melunko@47
 15885
melunko@47
 15886
# save warnings/boilerplate of simple test code
melunko@47
 15887
ac_outfile=conftest.$ac_objext
melunko@47
 15888
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
melunko@47
 15889
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
melunko@47
 15890
_lt_compiler_boilerplate=`cat conftest.err`
melunko@47
 15891
$rm conftest*
melunko@47
 15892
melunko@47
 15893
ac_outfile=conftest.$ac_objext
melunko@47
 15894
printf "$lt_simple_link_test_code" >conftest.$ac_ext
melunko@47
 15895
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
melunko@47
 15896
_lt_linker_boilerplate=`cat conftest.err`
melunko@47
 15897
$rm conftest*
melunko@47
 15898
melunko@47
 15899
melunko@47
 15900
# Allow CC to be a program name with arguments.
melunko@47
 15901
lt_save_CC="$CC"
melunko@47
 15902
CC=${GCJ-"gcj"}
melunko@47
 15903
compiler=$CC
melunko@47
 15904
compiler_GCJ=$CC
melunko@47
 15905
for cc_temp in $compiler""; do
melunko@47
 15906
  case $cc_temp in
melunko@47
 15907
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
melunko@47
 15908
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
melunko@47
 15909
    \-*) ;;
melunko@47
 15910
    *) break;;
melunko@47
 15911
  esac
melunko@47
 15912
done
melunko@47
 15913
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
melunko@47
 15914
melunko@47
 15915
melunko@47
 15916
# GCJ did not exist at the time GCC didn't implicitly link libc in.
melunko@47
 15917
archive_cmds_need_lc_GCJ=no
melunko@47
 15918
melunko@47
 15919
old_archive_cmds_GCJ=$old_archive_cmds
melunko@47
 15920
melunko@47
 15921
melunko@47
 15922
lt_prog_compiler_no_builtin_flag_GCJ=
melunko@47
 15923
melunko@47
 15924
if test "$GCC" = yes; then
melunko@47
 15925
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
melunko@47
 15926
melunko@47
 15927
  
melunko@47
 15928
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
melunko@47
 15929
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
melunko@47
 15930
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
melunko@47
 15931
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 15932
else
melunko@47
 15933
  lt_cv_prog_compiler_rtti_exceptions=no
melunko@47
 15934
  ac_outfile=conftest.$ac_objext
melunko@47
 15935
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
melunko@47
 15936
   lt_compiler_flag="-fno-rtti -fno-exceptions"
melunko@47
 15937
   # Insert the option either (1) after the last *FLAGS variable, or
melunko@47
 15938
   # (2) before a word containing "conftest.", or (3) at the end.
melunko@47
 15939
   # Note that $ac_compile itself does not contain backslashes and begins
melunko@47
 15940
   # with a dollar sign (not a hyphen), so the echo should work correctly.
melunko@47
 15941
   # The option is referenced via a variable to avoid confusing sed.
melunko@47
 15942
   lt_compile=`echo "$ac_compile" | $SED \
melunko@47
 15943
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
melunko@47
 15944
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
melunko@47
 15945
   -e 's:$: $lt_compiler_flag:'`
melunko@47
 15946
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
melunko@47
 15947
   (eval "$lt_compile" 2>conftest.err)
melunko@47
 15948
   ac_status=$?
melunko@47
 15949
   cat conftest.err >&5
melunko@47
 15950
   echo "$as_me:__oline__: \$? = $ac_status" >&5
melunko@47
 15951
   if (exit $ac_status) && test -s "$ac_outfile"; then
melunko@47
 15952
     # The compiler can only warn and ignore the option if not recognized
melunko@47
 15953
     # So say no if there are warnings other than the usual output.
melunko@47
 15954
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
melunko@47
 15955
     $SED '/^$/d' conftest.err >conftest.er2
melunko@47
 15956
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
melunko@47
 15957
       lt_cv_prog_compiler_rtti_exceptions=yes
melunko@47
 15958
     fi
melunko@47
 15959
   fi
melunko@47
 15960
   $rm conftest*
melunko@47
 15961
melunko@47
 15962
fi
melunko@47
 15963
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
melunko@47
 15964
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
melunko@47
 15965
melunko@47
 15966
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
melunko@47
 15967
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
melunko@47
 15968
else
melunko@47
 15969
    :
melunko@47
 15970
fi
melunko@47
 15971
melunko@47
 15972
fi
melunko@47
 15973
melunko@47
 15974
lt_prog_compiler_wl_GCJ=
melunko@47
 15975
lt_prog_compiler_pic_GCJ=
melunko@47
 15976
lt_prog_compiler_static_GCJ=
melunko@47
 15977
melunko@47
 15978
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
melunko@47
 15979
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
melunko@47
 15980
 
melunko@47
 15981
  if test "$GCC" = yes; then
melunko@47
 15982
    lt_prog_compiler_wl_GCJ='-Wl,'
melunko@47
 15983
    lt_prog_compiler_static_GCJ='-static'
melunko@47
 15984
melunko@47
 15985
    case $host_os in
melunko@47
 15986
      aix*)
melunko@47
 15987
      # All AIX code is PIC.
melunko@47
 15988
      if test "$host_cpu" = ia64; then
melunko@47
 15989
	# AIX 5 now supports IA64 processor
melunko@47
 15990
	lt_prog_compiler_static_GCJ='-Bstatic'
melunko@47
 15991
      fi
melunko@47
 15992
      ;;
melunko@47
 15993
melunko@47
 15994
    amigaos*)
melunko@47
 15995
      # FIXME: we need at least 68020 code to build shared libraries, but
melunko@47
 15996
      # adding the `-m68020' flag to GCC prevents building anything better,
melunko@47
 15997
      # like `-m68040'.
melunko@47
 15998
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
melunko@47
 15999
      ;;
melunko@47
 16000
melunko@47
 16001
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
melunko@47
 16002
      # PIC is the default for these OSes.
melunko@47
 16003
      ;;
melunko@47
 16004
melunko@47
 16005
    mingw* | pw32* | os2*)
melunko@47
 16006
      # This hack is so that the source file can tell whether it is being
melunko@47
 16007
      # built for inclusion in a dll (and should export symbols for example).
melunko@47
 16008
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
melunko@47
 16009
      ;;
melunko@47
 16010
melunko@47
 16011
    darwin* | rhapsody*)
melunko@47
 16012
      # PIC is the default on this platform
melunko@47
 16013
      # Common symbols not allowed in MH_DYLIB files
melunko@47
 16014
      lt_prog_compiler_pic_GCJ='-fno-common'
melunko@47
 16015
      ;;
melunko@47
 16016
melunko@47
 16017
    msdosdjgpp*)
melunko@47
 16018
      # Just because we use GCC doesn't mean we suddenly get shared libraries
melunko@47
 16019
      # on systems that don't support them.
melunko@47
 16020
      lt_prog_compiler_can_build_shared_GCJ=no
melunko@47
 16021
      enable_shared=no
melunko@47
 16022
      ;;
melunko@47
 16023
melunko@47
 16024
    sysv4*MP*)
melunko@47
 16025
      if test -d /usr/nec; then
melunko@47
 16026
	lt_prog_compiler_pic_GCJ=-Kconform_pic
melunko@47
 16027
      fi
melunko@47
 16028
      ;;
melunko@47
 16029
melunko@47
 16030
    hpux*)
melunko@47
 16031
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
melunko@47
 16032
      # not for PA HP-UX.
melunko@47
 16033
      case $host_cpu in
melunko@47
 16034
      hppa*64*|ia64*)
melunko@47
 16035
	# +Z the default
melunko@47
 16036
	;;
melunko@47
 16037
      *)
melunko@47
 16038
	lt_prog_compiler_pic_GCJ='-fPIC'
melunko@47
 16039
	;;
melunko@47
 16040
      esac
melunko@47
 16041
      ;;
melunko@47
 16042
melunko@47
 16043
    *)
melunko@47
 16044
      lt_prog_compiler_pic_GCJ='-fPIC'
melunko@47
 16045
      ;;
melunko@47
 16046
    esac
melunko@47
 16047
  else
melunko@47
 16048
    # PORTME Check for flag to pass linker flags through the system compiler.
melunko@47
 16049
    case $host_os in
melunko@47
 16050
    aix*)
melunko@47
 16051
      lt_prog_compiler_wl_GCJ='-Wl,'
melunko@47
 16052
      if test "$host_cpu" = ia64; then
melunko@47
 16053
	# AIX 5 now supports IA64 processor
melunko@47
 16054
	lt_prog_compiler_static_GCJ='-Bstatic'
melunko@47
 16055
      else
melunko@47
 16056
	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
melunko@47
 16057
      fi
melunko@47
 16058
      ;;
melunko@47
 16059
      darwin*)
melunko@47
 16060
        # PIC is the default on this platform
melunko@47
 16061
        # Common symbols not allowed in MH_DYLIB files
melunko@47
 16062
       case $cc_basename in
melunko@47
 16063
         xlc*)
melunko@47
 16064
         lt_prog_compiler_pic_GCJ='-qnocommon'
melunko@47
 16065
         lt_prog_compiler_wl_GCJ='-Wl,'
melunko@47
 16066
         ;;
melunko@47
 16067
       esac
melunko@47
 16068
       ;;
melunko@47
 16069
melunko@47
 16070
    mingw* | pw32* | os2*)
melunko@47
 16071
      # This hack is so that the source file can tell whether it is being
melunko@47
 16072
      # built for inclusion in a dll (and should export symbols for example).
melunko@47
 16073
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
melunko@47
 16074
      ;;
melunko@47
 16075
melunko@47
 16076
    hpux9* | hpux10* | hpux11*)
melunko@47
 16077
      lt_prog_compiler_wl_GCJ='-Wl,'
melunko@47
 16078
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
melunko@47
 16079
      # not for PA HP-UX.
melunko@47
 16080
      case $host_cpu in
melunko@47
 16081
      hppa*64*|ia64*)
melunko@47
 16082
	# +Z the default
melunko@47
 16083
	;;
melunko@47
 16084
      *)
melunko@47
 16085
	lt_prog_compiler_pic_GCJ='+Z'
melunko@47
 16086
	;;
melunko@47
 16087
      esac
melunko@47
 16088
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
melunko@47
 16089
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
melunko@47
 16090
      ;;
melunko@47
 16091
melunko@47
 16092
    irix5* | irix6* | nonstopux*)
melunko@47
 16093
      lt_prog_compiler_wl_GCJ='-Wl,'
melunko@47
 16094
      # PIC (with -KPIC) is the default.
melunko@47
 16095
      lt_prog_compiler_static_GCJ='-non_shared'
melunko@47
 16096
      ;;
melunko@47
 16097
melunko@47
 16098
    newsos6)
melunko@47
 16099
      lt_prog_compiler_pic_GCJ='-KPIC'
melunko@47
 16100
      lt_prog_compiler_static_GCJ='-Bstatic'
melunko@47
 16101
      ;;
melunko@47
 16102
melunko@47
 16103
    linux*)
melunko@47
 16104
      case $cc_basename in
melunko@47
 16105
      icc* | ecc*)
melunko@47
 16106
	lt_prog_compiler_wl_GCJ='-Wl,'
melunko@47
 16107
	lt_prog_compiler_pic_GCJ='-KPIC'
melunko@47
 16108
	lt_prog_compiler_static_GCJ='-static'
melunko@47
 16109
        ;;
melunko@47
 16110
      pgcc* | pgf77* | pgf90* | pgf95*)
melunko@47
 16111
        # Portland Group compilers (*not* the Pentium gcc compiler,
melunko@47
 16112
	# which looks to be a dead project)
melunko@47
 16113
	lt_prog_compiler_wl_GCJ='-Wl,'
melunko@47
 16114
	lt_prog_compiler_pic_GCJ='-fpic'
melunko@47
 16115
	lt_prog_compiler_static_GCJ='-Bstatic'
melunko@47
 16116
        ;;
melunko@47
 16117
      ccc*)
melunko@47
 16118
        lt_prog_compiler_wl_GCJ='-Wl,'
melunko@47
 16119
        # All Alpha code is PIC.
melunko@47
 16120
        lt_prog_compiler_static_GCJ='-non_shared'
melunko@47
 16121
        ;;
melunko@47
 16122
      esac
melunko@47
 16123
      ;;
melunko@47
 16124
melunko@47
 16125
    osf3* | osf4* | osf5*)
melunko@47
 16126
      lt_prog_compiler_wl_GCJ='-Wl,'
melunko@47
 16127
      # All OSF/1 code is PIC.
melunko@47
 16128
      lt_prog_compiler_static_GCJ='-non_shared'
melunko@47
 16129
      ;;
melunko@47
 16130
melunko@47
 16131
    sco3.2v5*)
melunko@47
 16132
      lt_prog_compiler_pic_GCJ='-Kpic'
melunko@47
 16133
      lt_prog_compiler_static_GCJ='-dn'
melunko@47
 16134
      ;;
melunko@47
 16135
melunko@47
 16136
    solaris*)
melunko@47
 16137
      lt_prog_compiler_pic_GCJ='-KPIC'
melunko@47
 16138
      lt_prog_compiler_static_GCJ='-Bstatic'
melunko@47
 16139
      case $cc_basename in
melunko@47
 16140
      f77* | f90* | f95*)
melunko@47
 16141
	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
melunko@47
 16142
      *)
melunko@47
 16143
	lt_prog_compiler_wl_GCJ='-Wl,';;
melunko@47
 16144
      esac
melunko@47
 16145
      ;;
melunko@47
 16146
melunko@47
 16147
    sunos4*)
melunko@47
 16148
      lt_prog_compiler_wl_GCJ='-Qoption ld '
melunko@47
 16149
      lt_prog_compiler_pic_GCJ='-PIC'
melunko@47
 16150
      lt_prog_compiler_static_GCJ='-Bstatic'
melunko@47
 16151
      ;;
melunko@47
 16152
melunko@47
 16153
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
melunko@47
 16154
      lt_prog_compiler_wl_GCJ='-Wl,'
melunko@47
 16155
      lt_prog_compiler_pic_GCJ='-KPIC'
melunko@47
 16156
      lt_prog_compiler_static_GCJ='-Bstatic'
melunko@47
 16157
      ;;
melunko@47
 16158
melunko@47
 16159
    sysv4*MP*)
melunko@47
 16160
      if test -d /usr/nec ;then
melunko@47
 16161
	lt_prog_compiler_pic_GCJ='-Kconform_pic'
melunko@47
 16162
	lt_prog_compiler_static_GCJ='-Bstatic'
melunko@47
 16163
      fi
melunko@47
 16164
      ;;
melunko@47
 16165
melunko@47
 16166
    unicos*)
melunko@47
 16167
      lt_prog_compiler_wl_GCJ='-Wl,'
melunko@47
 16168
      lt_prog_compiler_can_build_shared_GCJ=no
melunko@47
 16169
      ;;
melunko@47
 16170
melunko@47
 16171
    uts4*)
melunko@47
 16172
      lt_prog_compiler_pic_GCJ='-pic'
melunko@47
 16173
      lt_prog_compiler_static_GCJ='-Bstatic'
melunko@47
 16174
      ;;
melunko@47
 16175
melunko@47
 16176
    *)
melunko@47
 16177
      lt_prog_compiler_can_build_shared_GCJ=no
melunko@47
 16178
      ;;
melunko@47
 16179
    esac
melunko@47
 16180
  fi
melunko@47
 16181
melunko@47
 16182
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
melunko@47
 16183
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
melunko@47
 16184
melunko@47
 16185
#
melunko@47
 16186
# Check to make sure the PIC flag actually works.
melunko@47
 16187
#
melunko@47
 16188
if test -n "$lt_prog_compiler_pic_GCJ"; then
melunko@47
 16189
  
melunko@47
 16190
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
melunko@47
 16191
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
melunko@47
 16192
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
melunko@47
 16193
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 16194
else
melunko@47
 16195
  lt_prog_compiler_pic_works_GCJ=no
melunko@47
 16196
  ac_outfile=conftest.$ac_objext
melunko@47
 16197
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
melunko@47
 16198
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
melunko@47
 16199
   # Insert the option either (1) after the last *FLAGS variable, or
melunko@47
 16200
   # (2) before a word containing "conftest.", or (3) at the end.
melunko@47
 16201
   # Note that $ac_compile itself does not contain backslashes and begins
melunko@47
 16202
   # with a dollar sign (not a hyphen), so the echo should work correctly.
melunko@47
 16203
   # The option is referenced via a variable to avoid confusing sed.
melunko@47
 16204
   lt_compile=`echo "$ac_compile" | $SED \
melunko@47
 16205
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
melunko@47
 16206
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
melunko@47
 16207
   -e 's:$: $lt_compiler_flag:'`
melunko@47
 16208
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
melunko@47
 16209
   (eval "$lt_compile" 2>conftest.err)
melunko@47
 16210
   ac_status=$?
melunko@47
 16211
   cat conftest.err >&5
melunko@47
 16212
   echo "$as_me:__oline__: \$? = $ac_status" >&5
melunko@47
 16213
   if (exit $ac_status) && test -s "$ac_outfile"; then
melunko@47
 16214
     # The compiler can only warn and ignore the option if not recognized
melunko@47
 16215
     # So say no if there are warnings other than the usual output.
melunko@47
 16216
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
melunko@47
 16217
     $SED '/^$/d' conftest.err >conftest.er2
melunko@47
 16218
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
melunko@47
 16219
       lt_prog_compiler_pic_works_GCJ=yes
melunko@47
 16220
     fi
melunko@47
 16221
   fi
melunko@47
 16222
   $rm conftest*
melunko@47
 16223
melunko@47
 16224
fi
melunko@47
 16225
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
melunko@47
 16226
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
melunko@47
 16227
melunko@47
 16228
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
melunko@47
 16229
    case $lt_prog_compiler_pic_GCJ in
melunko@47
 16230
     "" | " "*) ;;
melunko@47
 16231
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
melunko@47
 16232
     esac
melunko@47
 16233
else
melunko@47
 16234
    lt_prog_compiler_pic_GCJ=
melunko@47
 16235
     lt_prog_compiler_can_build_shared_GCJ=no
melunko@47
 16236
fi
melunko@47
 16237
melunko@47
 16238
fi
melunko@47
 16239
case $host_os in
melunko@47
 16240
  # For platforms which do not support PIC, -DPIC is meaningless:
melunko@47
 16241
  *djgpp*)
melunko@47
 16242
    lt_prog_compiler_pic_GCJ=
melunko@47
 16243
    ;;
melunko@47
 16244
  *)
melunko@47
 16245
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
melunko@47
 16246
    ;;
melunko@47
 16247
esac
melunko@47
 16248
melunko@47
 16249
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
melunko@47
 16250
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
melunko@47
 16251
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
melunko@47
 16252
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 16253
else
melunko@47
 16254
  lt_cv_prog_compiler_c_o_GCJ=no
melunko@47
 16255
   $rm -r conftest 2>/dev/null
melunko@47
 16256
   mkdir conftest
melunko@47
 16257
   cd conftest
melunko@47
 16258
   mkdir out
melunko@47
 16259
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
melunko@47
 16260
melunko@47
 16261
   lt_compiler_flag="-o out/conftest2.$ac_objext"
melunko@47
 16262
   # Insert the option either (1) after the last *FLAGS variable, or
melunko@47
 16263
   # (2) before a word containing "conftest.", or (3) at the end.
melunko@47
 16264
   # Note that $ac_compile itself does not contain backslashes and begins
melunko@47
 16265
   # with a dollar sign (not a hyphen), so the echo should work correctly.
melunko@47
 16266
   lt_compile=`echo "$ac_compile" | $SED \
melunko@47
 16267
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
melunko@47
 16268
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
melunko@47
 16269
   -e 's:$: $lt_compiler_flag:'`
melunko@47
 16270
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
melunko@47
 16271
   (eval "$lt_compile" 2>out/conftest.err)
melunko@47
 16272
   ac_status=$?
melunko@47
 16273
   cat out/conftest.err >&5
melunko@47
 16274
   echo "$as_me:__oline__: \$? = $ac_status" >&5
melunko@47
 16275
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
melunko@47
 16276
   then
melunko@47
 16277
     # The compiler can only warn and ignore the option if not recognized
melunko@47
 16278
     # So say no if there are warnings
melunko@47
 16279
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
melunko@47
 16280
     $SED '/^$/d' out/conftest.err >out/conftest.er2
melunko@47
 16281
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
melunko@47
 16282
       lt_cv_prog_compiler_c_o_GCJ=yes
melunko@47
 16283
     fi
melunko@47
 16284
   fi
melunko@47
 16285
   chmod u+w . 2>&5
melunko@47
 16286
   $rm conftest*
melunko@47
 16287
   # SGI C++ compiler will create directory out/ii_files/ for
melunko@47
 16288
   # template instantiation
melunko@47
 16289
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
melunko@47
 16290
   $rm out/* && rmdir out
melunko@47
 16291
   cd ..
melunko@47
 16292
   rmdir conftest
melunko@47
 16293
   $rm conftest*
melunko@47
 16294
melunko@47
 16295
fi
melunko@47
 16296
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
melunko@47
 16297
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
melunko@47
 16298
melunko@47
 16299
melunko@47
 16300
hard_links="nottested"
melunko@47
 16301
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
melunko@47
 16302
  # do not overwrite the value of need_locks provided by the user
melunko@47
 16303
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
melunko@47
 16304
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
melunko@47
 16305
  hard_links=yes
melunko@47
 16306
  $rm conftest*
melunko@47
 16307
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
melunko@47
 16308
  touch conftest.a
melunko@47
 16309
  ln conftest.a conftest.b 2>&5 || hard_links=no
melunko@47
 16310
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
melunko@47
 16311
  echo "$as_me:$LINENO: result: $hard_links" >&5
melunko@47
 16312
echo "${ECHO_T}$hard_links" >&6
melunko@47
 16313
  if test "$hard_links" = no; then
melunko@47
 16314
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
melunko@47
 16315
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
melunko@47
 16316
    need_locks=warn
melunko@47
 16317
  fi
melunko@47
 16318
else
melunko@47
 16319
  need_locks=no
melunko@47
 16320
fi
melunko@47
 16321
melunko@47
 16322
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
melunko@47
 16323
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
melunko@47
 16324
melunko@47
 16325
  runpath_var=
melunko@47
 16326
  allow_undefined_flag_GCJ=
melunko@47
 16327
  enable_shared_with_static_runtimes_GCJ=no
melunko@47
 16328
  archive_cmds_GCJ=
melunko@47
 16329
  archive_expsym_cmds_GCJ=
melunko@47
 16330
  old_archive_From_new_cmds_GCJ=
melunko@47
 16331
  old_archive_from_expsyms_cmds_GCJ=
melunko@47
 16332
  export_dynamic_flag_spec_GCJ=
melunko@47
 16333
  whole_archive_flag_spec_GCJ=
melunko@47
 16334
  thread_safe_flag_spec_GCJ=
melunko@47
 16335
  hardcode_libdir_flag_spec_GCJ=
melunko@47
 16336
  hardcode_libdir_flag_spec_ld_GCJ=
melunko@47
 16337
  hardcode_libdir_separator_GCJ=
melunko@47
 16338
  hardcode_direct_GCJ=no
melunko@47
 16339
  hardcode_minus_L_GCJ=no
melunko@47
 16340
  hardcode_shlibpath_var_GCJ=unsupported
melunko@47
 16341
  link_all_deplibs_GCJ=unknown
melunko@47
 16342
  hardcode_automatic_GCJ=no
melunko@47
 16343
  module_cmds_GCJ=
melunko@47
 16344
  module_expsym_cmds_GCJ=
melunko@47
 16345
  always_export_symbols_GCJ=no
melunko@47
 16346
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
melunko@47
 16347
  # include_expsyms should be a list of space-separated symbols to be *always*
melunko@47
 16348
  # included in the symbol list
melunko@47
 16349
  include_expsyms_GCJ=
melunko@47
 16350
  # exclude_expsyms can be an extended regexp of symbols to exclude
melunko@47
 16351
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
melunko@47
 16352
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
melunko@47
 16353
  # as well as any symbol that contains `d'.
melunko@47
 16354
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
melunko@47
 16355
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
melunko@47
 16356
  # platforms (ab)use it in PIC code, but their linkers get confused if
melunko@47
 16357
  # the symbol is explicitly referenced.  Since portable code cannot
melunko@47
 16358
  # rely on this symbol name, it's probably fine to never include it in
melunko@47
 16359
  # preloaded symbol tables.
melunko@47
 16360
  extract_expsyms_cmds=
melunko@47
 16361
  # Just being paranoid about ensuring that cc_basename is set.
melunko@47
 16362
  for cc_temp in $compiler""; do
melunko@47
 16363
  case $cc_temp in
melunko@47
 16364
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
melunko@47
 16365
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
melunko@47
 16366
    \-*) ;;
melunko@47
 16367
    *) break;;
melunko@47
 16368
  esac
melunko@47
 16369
done
melunko@47
 16370
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
melunko@47
 16371
melunko@47
 16372
  case $host_os in
melunko@47
 16373
  cygwin* | mingw* | pw32*)
melunko@47
 16374
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
melunko@47
 16375
    # When not using gcc, we currently assume that we are using
melunko@47
 16376
    # Microsoft Visual C++.
melunko@47
 16377
    if test "$GCC" != yes; then
melunko@47
 16378
      with_gnu_ld=no
melunko@47
 16379
    fi
melunko@47
 16380
    ;;
melunko@47
 16381
  openbsd*)
melunko@47
 16382
    with_gnu_ld=no
melunko@47
 16383
    ;;
melunko@47
 16384
  esac
melunko@47
 16385
melunko@47
 16386
  ld_shlibs_GCJ=yes
melunko@47
 16387
  if test "$with_gnu_ld" = yes; then
melunko@47
 16388
    # If archive_cmds runs LD, not CC, wlarc should be empty
melunko@47
 16389
    wlarc='${wl}'
melunko@47
 16390
melunko@47
 16391
    # Set some defaults for GNU ld with shared library support. These
melunko@47
 16392
    # are reset later if shared libraries are not supported. Putting them
melunko@47
 16393
    # here allows them to be overridden if necessary.
melunko@47
 16394
    runpath_var=LD_RUN_PATH
melunko@47
 16395
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
melunko@47
 16396
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
melunko@47
 16397
    # ancient GNU ld didn't support --whole-archive et. al.
melunko@47
 16398
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
melunko@47
 16399
	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
melunko@47
 16400
      else
melunko@47
 16401
  	whole_archive_flag_spec_GCJ=
melunko@47
 16402
    fi
melunko@47
 16403
    supports_anon_versioning=no
melunko@47
 16404
    case `$LD -v 2>/dev/null` in
melunko@47
 16405
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
melunko@47
 16406
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
melunko@47
 16407
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
melunko@47
 16408
      *\ 2.11.*) ;; # other 2.11 versions
melunko@47
 16409
      *) supports_anon_versioning=yes ;;
melunko@47
 16410
    esac
melunko@47
 16411
melunko@47
 16412
    # See if GNU ld supports shared libraries.
melunko@47
 16413
    case $host_os in
melunko@47
 16414
    aix3* | aix4* | aix5*)
melunko@47
 16415
      # On AIX/PPC, the GNU linker is very broken
melunko@47
 16416
      if test "$host_cpu" != ia64; then
melunko@47
 16417
	ld_shlibs_GCJ=no
melunko@47
 16418
	cat <<EOF 1>&2
melunko@47
 16419
melunko@47
 16420
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
melunko@47
 16421
*** to be unable to reliably create shared libraries on AIX.
melunko@47
 16422
*** Therefore, libtool is disabling shared libraries support.  If you
melunko@47
 16423
*** really care for shared libraries, you may want to modify your PATH
melunko@47
 16424
*** so that a non-GNU linker is found, and then restart.
melunko@47
 16425
melunko@47
 16426
EOF
melunko@47
 16427
      fi
melunko@47
 16428
      ;;
melunko@47
 16429
melunko@47
 16430
    amigaos*)
melunko@47
 16431
      archive_cmds_GCJ='$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)'
melunko@47
 16432
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
melunko@47
 16433
      hardcode_minus_L_GCJ=yes
melunko@47
 16434
melunko@47
 16435
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
melunko@47
 16436
      # that the semantics of dynamic libraries on AmigaOS, at least up
melunko@47
 16437
      # to version 4, is to share data among multiple programs linked
melunko@47
 16438
      # with the same dynamic library.  Since this doesn't match the
melunko@47
 16439
      # behavior of shared libraries on other platforms, we can't use
melunko@47
 16440
      # them.
melunko@47
 16441
      ld_shlibs_GCJ=no
melunko@47
 16442
      ;;
melunko@47
 16443
melunko@47
 16444
    beos*)
melunko@47
 16445
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
melunko@47
 16446
	allow_undefined_flag_GCJ=unsupported
melunko@47
 16447
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
melunko@47
 16448
	# support --undefined.  This deserves some investigation.  FIXME
melunko@47
 16449
	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
 16450
      else
melunko@47
 16451
	ld_shlibs_GCJ=no
melunko@47
 16452
      fi
melunko@47
 16453
      ;;
melunko@47
 16454
melunko@47
 16455
    cygwin* | mingw* | pw32*)
melunko@47
 16456
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
melunko@47
 16457
      # as there is no search path for DLLs.
melunko@47
 16458
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
melunko@47
 16459
      allow_undefined_flag_GCJ=unsupported
melunko@47
 16460
      always_export_symbols_GCJ=no
melunko@47
 16461
      enable_shared_with_static_runtimes_GCJ=yes
melunko@47
 16462
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
melunko@47
 16463
melunko@47
 16464
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
melunko@47
 16465
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
melunko@47
 16466
	# If the export-symbols file already is a .def file (1st line
melunko@47
 16467
	# is EXPORTS), use it as is; otherwise, prepend...
melunko@47
 16468
	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
melunko@47
 16469
	  cp $export_symbols $output_objdir/$soname.def;
melunko@47
 16470
	else
melunko@47
 16471
	  echo EXPORTS > $output_objdir/$soname.def;
melunko@47
 16472
	  cat $export_symbols >> $output_objdir/$soname.def;
melunko@47
 16473
	fi~
melunko@47
 16474
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
melunko@47
 16475
      else
melunko@47
 16476
	ld_shlibs_GCJ=no
melunko@47
 16477
      fi
melunko@47
 16478
      ;;
melunko@47
 16479
melunko@47
 16480
    linux*)
melunko@47
 16481
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
melunko@47
 16482
	tmp_addflag=
melunko@47
 16483
	case $cc_basename,$host_cpu in
melunko@47
 16484
	pgcc*)				# Portland Group C compiler
melunko@47
 16485
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
melunko@47
 16486
	  tmp_addflag=' $pic_flag'
melunko@47
 16487
	  ;;
melunko@47
 16488
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
melunko@47
 16489
	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
melunko@47
 16490
	  tmp_addflag=' $pic_flag -Mnomain' ;;
melunko@47
 16491
	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
melunko@47
 16492
	  tmp_addflag=' -i_dynamic' ;;
melunko@47
 16493
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
melunko@47
 16494
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
melunko@47
 16495
	ifc* | ifort*)			# Intel Fortran compiler
melunko@47
 16496
	  tmp_addflag=' -nofor_main' ;;
melunko@47
 16497
	esac
melunko@47
 16498
	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
 16499
melunko@47
 16500
	if test $supports_anon_versioning = yes; then
melunko@47
 16501
	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
melunko@47
 16502
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
melunko@47
 16503
  $echo "local: *; };" >> $output_objdir/$libname.ver~
melunko@47
 16504
	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
melunko@47
 16505
	fi
melunko@47
 16506
      else
melunko@47
 16507
	ld_shlibs_GCJ=no
melunko@47
 16508
      fi
melunko@47
 16509
      ;;
melunko@47
 16510
melunko@47
 16511
    netbsd*)
melunko@47
 16512
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
melunko@47
 16513
	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
melunko@47
 16514
	wlarc=
melunko@47
 16515
      else
melunko@47
 16516
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
 16517
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
melunko@47
 16518
      fi
melunko@47
 16519
      ;;
melunko@47
 16520
melunko@47
 16521
    solaris* | sysv5*)
melunko@47
 16522
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
melunko@47
 16523
	ld_shlibs_GCJ=no
melunko@47
 16524
	cat <<EOF 1>&2
melunko@47
 16525
melunko@47
 16526
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
melunko@47
 16527
*** create shared libraries on Solaris systems.  Therefore, libtool
melunko@47
 16528
*** is disabling shared libraries support.  We urge you to upgrade GNU
melunko@47
 16529
*** binutils to release 2.9.1 or newer.  Another option is to modify
melunko@47
 16530
*** your PATH or compiler configuration so that the native linker is
melunko@47
 16531
*** used, and then restart.
melunko@47
 16532
melunko@47
 16533
EOF
melunko@47
 16534
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
melunko@47
 16535
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
 16536
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
melunko@47
 16537
      else
melunko@47
 16538
	ld_shlibs_GCJ=no
melunko@47
 16539
      fi
melunko@47
 16540
      ;;
melunko@47
 16541
melunko@47
 16542
    sunos4*)
melunko@47
 16543
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 16544
      wlarc=
melunko@47
 16545
      hardcode_direct_GCJ=yes
melunko@47
 16546
      hardcode_shlibpath_var_GCJ=no
melunko@47
 16547
      ;;
melunko@47
 16548
melunko@47
 16549
    *)
melunko@47
 16550
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
melunko@47
 16551
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
melunko@47
 16552
	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
melunko@47
 16553
      else
melunko@47
 16554
	ld_shlibs_GCJ=no
melunko@47
 16555
      fi
melunko@47
 16556
      ;;
melunko@47
 16557
    esac
melunko@47
 16558
melunko@47
 16559
    if test "$ld_shlibs_GCJ" = no; then
melunko@47
 16560
      runpath_var=
melunko@47
 16561
      hardcode_libdir_flag_spec_GCJ=
melunko@47
 16562
      export_dynamic_flag_spec_GCJ=
melunko@47
 16563
      whole_archive_flag_spec_GCJ=
melunko@47
 16564
    fi
melunko@47
 16565
  else
melunko@47
 16566
    # PORTME fill in a description of your system's linker (not GNU ld)
melunko@47
 16567
    case $host_os in
melunko@47
 16568
    aix3*)
melunko@47
 16569
      allow_undefined_flag_GCJ=unsupported
melunko@47
 16570
      always_export_symbols_GCJ=yes
melunko@47
 16571
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
melunko@47
 16572
      # Note: this linker hardcodes the directories in LIBPATH if there
melunko@47
 16573
      # are no directories specified by -L.
melunko@47
 16574
      hardcode_minus_L_GCJ=yes
melunko@47
 16575
      if test "$GCC" = yes && test -z "$link_static_flag"; then
melunko@47
 16576
	# Neither direct hardcoding nor static linking is supported with a
melunko@47
 16577
	# broken collect2.
melunko@47
 16578
	hardcode_direct_GCJ=unsupported
melunko@47
 16579
      fi
melunko@47
 16580
      ;;
melunko@47
 16581
melunko@47
 16582
    aix4* | aix5*)
melunko@47
 16583
      if test "$host_cpu" = ia64; then
melunko@47
 16584
	# On IA64, the linker does run time linking by default, so we don't
melunko@47
 16585
	# have to do anything special.
melunko@47
 16586
	aix_use_runtimelinking=no
melunko@47
 16587
	exp_sym_flag='-Bexport'
melunko@47
 16588
	no_entry_flag=""
melunko@47
 16589
      else
melunko@47
 16590
	# If we're using GNU nm, then we don't want the "-C" option.
melunko@47
 16591
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
melunko@47
 16592
	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
melunko@47
 16593
	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
melunko@47
 16594
	else
melunko@47
 16595
	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
melunko@47
 16596
	fi
melunko@47
 16597
	aix_use_runtimelinking=no
melunko@47
 16598
melunko@47
 16599
	# Test if we are trying to use run time linking or normal
melunko@47
 16600
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
melunko@47
 16601
	# need to do runtime linking.
melunko@47
 16602
	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
melunko@47
 16603
	  for ld_flag in $LDFLAGS; do
melunko@47
 16604
  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
melunko@47
 16605
  	    aix_use_runtimelinking=yes
melunko@47
 16606
  	    break
melunko@47
 16607
  	  fi
melunko@47
 16608
	  done
melunko@47
 16609
	esac
melunko@47
 16610
melunko@47
 16611
	exp_sym_flag='-bexport'
melunko@47
 16612
	no_entry_flag='-bnoentry'
melunko@47
 16613
      fi
melunko@47
 16614
melunko@47
 16615
      # When large executables or shared objects are built, AIX ld can
melunko@47
 16616
      # have problems creating the table of contents.  If linking a library
melunko@47
 16617
      # or program results in "error TOC overflow" add -mminimal-toc to
melunko@47
 16618
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
melunko@47
 16619
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
melunko@47
 16620
melunko@47
 16621
      archive_cmds_GCJ=''
melunko@47
 16622
      hardcode_direct_GCJ=yes
melunko@47
 16623
      hardcode_libdir_separator_GCJ=':'
melunko@47
 16624
      link_all_deplibs_GCJ=yes
melunko@47
 16625
melunko@47
 16626
      if test "$GCC" = yes; then
melunko@47
 16627
	case $host_os in aix4.[012]|aix4.[012].*)
melunko@47
 16628
	# We only want to do this on AIX 4.2 and lower, the check
melunko@47
 16629
	# below for broken collect2 doesn't work under 4.3+
melunko@47
 16630
	  collect2name=`${CC} -print-prog-name=collect2`
melunko@47
 16631
	  if test -f "$collect2name" && \
melunko@47
 16632
  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
melunko@47
 16633
	  then
melunko@47
 16634
  	  # We have reworked collect2
melunko@47
 16635
  	  hardcode_direct_GCJ=yes
melunko@47
 16636
	  else
melunko@47
 16637
  	  # We have old collect2
melunko@47
 16638
  	  hardcode_direct_GCJ=unsupported
melunko@47
 16639
  	  # It fails to find uninstalled libraries when the uninstalled
melunko@47
 16640
  	  # path is not listed in the libpath.  Setting hardcode_minus_L
melunko@47
 16641
  	  # to unsupported forces relinking
melunko@47
 16642
  	  hardcode_minus_L_GCJ=yes
melunko@47
 16643
  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
melunko@47
 16644
  	  hardcode_libdir_separator_GCJ=
melunko@47
 16645
	  fi
melunko@47
 16646
	esac
melunko@47
 16647
	shared_flag='-shared'
melunko@47
 16648
	if test "$aix_use_runtimelinking" = yes; then
melunko@47
 16649
	  shared_flag="$shared_flag "'${wl}-G'
melunko@47
 16650
	fi
melunko@47
 16651
      else
melunko@47
 16652
	# not using gcc
melunko@47
 16653
	if test "$host_cpu" = ia64; then
melunko@47
 16654
  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
melunko@47
 16655
  	# chokes on -Wl,-G. The following line is correct:
melunko@47
 16656
	  shared_flag='-G'
melunko@47
 16657
	else
melunko@47
 16658
  	if test "$aix_use_runtimelinking" = yes; then
melunko@47
 16659
	    shared_flag='${wl}-G'
melunko@47
 16660
	  else
melunko@47
 16661
	    shared_flag='${wl}-bM:SRE'
melunko@47
 16662
  	fi
melunko@47
 16663
	fi
melunko@47
 16664
      fi
melunko@47
 16665
melunko@47
 16666
      # It seems that -bexpall does not export symbols beginning with
melunko@47
 16667
      # underscore (_), so it is better to generate a list of symbols to export.
melunko@47
 16668
      always_export_symbols_GCJ=yes
melunko@47
 16669
      if test "$aix_use_runtimelinking" = yes; then
melunko@47
 16670
	# Warning - without using the other runtime loading flags (-brtl),
melunko@47
 16671
	# -berok will link without error, but may produce a broken library.
melunko@47
 16672
	allow_undefined_flag_GCJ='-berok'
melunko@47
 16673
       # Determine the default libpath from the value encoded in an empty executable.
melunko@47
 16674
       cat >conftest.$ac_ext <<_ACEOF
melunko@47
 16675
/* confdefs.h.  */
melunko@47
 16676
_ACEOF
melunko@47
 16677
cat confdefs.h >>conftest.$ac_ext
melunko@47
 16678
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 16679
/* end confdefs.h.  */
melunko@47
 16680
melunko@47
 16681
int
melunko@47
 16682
main ()
melunko@47
 16683
{
melunko@47
 16684
melunko@47
 16685
  ;
melunko@47
 16686
  return 0;
melunko@47
 16687
}
melunko@47
 16688
_ACEOF
melunko@47
 16689
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 16690
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 16691
  (eval $ac_link) 2>conftest.er1
melunko@47
 16692
  ac_status=$?
melunko@47
 16693
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 16694
  rm -f conftest.er1
melunko@47
 16695
  cat conftest.err >&5
melunko@47
 16696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 16697
  (exit $ac_status); } &&
melunko@47
 16698
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 16699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 16700
  (eval $ac_try) 2>&5
melunko@47
 16701
  ac_status=$?
melunko@47
 16702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 16703
  (exit $ac_status); }; } &&
melunko@47
 16704
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 16705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 16706
  (eval $ac_try) 2>&5
melunko@47
 16707
  ac_status=$?
melunko@47
 16708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 16709
  (exit $ac_status); }; }; then
melunko@47
 16710
  
melunko@47
 16711
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
 16712
}'`
melunko@47
 16713
# Check for a 64-bit object if we didn't find anything.
melunko@47
 16714
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
 16715
}'`; fi
melunko@47
 16716
else
melunko@47
 16717
  echo "$as_me: failed program was:" >&5
melunko@47
 16718
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 16719
melunko@47
 16720
fi
melunko@47
 16721
rm -f conftest.err conftest.$ac_objext \
melunko@47
 16722
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 16723
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
melunko@47
 16724
melunko@47
 16725
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
melunko@47
 16726
	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
melunko@47
 16727
       else
melunko@47
 16728
	if test "$host_cpu" = ia64; then
melunko@47
 16729
	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
melunko@47
 16730
	  allow_undefined_flag_GCJ="-z nodefs"
melunko@47
 16731
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
melunko@47
 16732
	else
melunko@47
 16733
	 # Determine the default libpath from the value encoded in an empty executable.
melunko@47
 16734
	 cat >conftest.$ac_ext <<_ACEOF
melunko@47
 16735
/* confdefs.h.  */
melunko@47
 16736
_ACEOF
melunko@47
 16737
cat confdefs.h >>conftest.$ac_ext
melunko@47
 16738
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 16739
/* end confdefs.h.  */
melunko@47
 16740
melunko@47
 16741
int
melunko@47
 16742
main ()
melunko@47
 16743
{
melunko@47
 16744
melunko@47
 16745
  ;
melunko@47
 16746
  return 0;
melunko@47
 16747
}
melunko@47
 16748
_ACEOF
melunko@47
 16749
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 16750
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 16751
  (eval $ac_link) 2>conftest.er1
melunko@47
 16752
  ac_status=$?
melunko@47
 16753
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 16754
  rm -f conftest.er1
melunko@47
 16755
  cat conftest.err >&5
melunko@47
 16756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 16757
  (exit $ac_status); } &&
melunko@47
 16758
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 16759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 16760
  (eval $ac_try) 2>&5
melunko@47
 16761
  ac_status=$?
melunko@47
 16762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 16763
  (exit $ac_status); }; } &&
melunko@47
 16764
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 16765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 16766
  (eval $ac_try) 2>&5
melunko@47
 16767
  ac_status=$?
melunko@47
 16768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 16769
  (exit $ac_status); }; }; then
melunko@47
 16770
  
melunko@47
 16771
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
 16772
}'`
melunko@47
 16773
# Check for a 64-bit object if we didn't find anything.
melunko@47
 16774
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
melunko@47
 16775
}'`; fi
melunko@47
 16776
else
melunko@47
 16777
  echo "$as_me: failed program was:" >&5
melunko@47
 16778
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 16779
melunko@47
 16780
fi
melunko@47
 16781
rm -f conftest.err conftest.$ac_objext \
melunko@47
 16782
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 16783
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
melunko@47
 16784
melunko@47
 16785
	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
melunko@47
 16786
	  # Warning - without using the other run time loading flags,
melunko@47
 16787
	  # -berok will link without error, but may produce a broken library.
melunko@47
 16788
	  no_undefined_flag_GCJ=' ${wl}-bernotok'
melunko@47
 16789
	  allow_undefined_flag_GCJ=' ${wl}-berok'
melunko@47
 16790
	  # -bexpall does not export symbols beginning with underscore (_)
melunko@47
 16791
	  always_export_symbols_GCJ=yes
melunko@47
 16792
	  # Exported symbols can be pulled into shared objects from archives
melunko@47
 16793
	  whole_archive_flag_spec_GCJ=' '
melunko@47
 16794
	  archive_cmds_need_lc_GCJ=yes
melunko@47
 16795
	  # This is similar to how AIX traditionally builds its shared libraries.
melunko@47
 16796
	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
melunko@47
 16797
	fi
melunko@47
 16798
      fi
melunko@47
 16799
      ;;
melunko@47
 16800
melunko@47
 16801
    amigaos*)
melunko@47
 16802
      archive_cmds_GCJ='$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)'
melunko@47
 16803
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
melunko@47
 16804
      hardcode_minus_L_GCJ=yes
melunko@47
 16805
      # see comment about different semantics on the GNU ld section
melunko@47
 16806
      ld_shlibs_GCJ=no
melunko@47
 16807
      ;;
melunko@47
 16808
melunko@47
 16809
    bsdi[45]*)
melunko@47
 16810
      export_dynamic_flag_spec_GCJ=-rdynamic
melunko@47
 16811
      ;;
melunko@47
 16812
melunko@47
 16813
    cygwin* | mingw* | pw32*)
melunko@47
 16814
      # When not using gcc, we currently assume that we are using
melunko@47
 16815
      # Microsoft Visual C++.
melunko@47
 16816
      # hardcode_libdir_flag_spec is actually meaningless, as there is
melunko@47
 16817
      # no search path for DLLs.
melunko@47
 16818
      hardcode_libdir_flag_spec_GCJ=' '
melunko@47
 16819
      allow_undefined_flag_GCJ=unsupported
melunko@47
 16820
      # Tell ltmain to make .lib files, not .a files.
melunko@47
 16821
      libext=lib
melunko@47
 16822
      # Tell ltmain to make .dll files, not .so files.
melunko@47
 16823
      shrext_cmds=".dll"
melunko@47
 16824
      # FIXME: Setting linknames here is a bad hack.
melunko@47
 16825
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
melunko@47
 16826
      # The linker will automatically build a .lib file if we build a DLL.
melunko@47
 16827
      old_archive_From_new_cmds_GCJ='true'
melunko@47
 16828
      # FIXME: Should let the user specify the lib program.
melunko@47
 16829
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
melunko@47
 16830
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
melunko@47
 16831
      enable_shared_with_static_runtimes_GCJ=yes
melunko@47
 16832
      ;;
melunko@47
 16833
melunko@47
 16834
    darwin* | rhapsody*)
melunko@47
 16835
      case $host_os in
melunko@47
 16836
        rhapsody* | darwin1.[012])
melunko@47
 16837
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
melunko@47
 16838
         ;;
melunko@47
 16839
       *) # Darwin 1.3 on
melunko@47
 16840
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
melunko@47
 16841
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
melunko@47
 16842
         else
melunko@47
 16843
           case ${MACOSX_DEPLOYMENT_TARGET} in
melunko@47
 16844
             10.[012])
melunko@47
 16845
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
melunko@47
 16846
               ;;
melunko@47
 16847
             10.*)
melunko@47
 16848
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
melunko@47
 16849
               ;;
melunko@47
 16850
           esac
melunko@47
 16851
         fi
melunko@47
 16852
         ;;
melunko@47
 16853
      esac
melunko@47
 16854
      archive_cmds_need_lc_GCJ=no
melunko@47
 16855
      hardcode_direct_GCJ=no
melunko@47
 16856
      hardcode_automatic_GCJ=yes
melunko@47
 16857
      hardcode_shlibpath_var_GCJ=unsupported
melunko@47
 16858
      whole_archive_flag_spec_GCJ=''
melunko@47
 16859
      link_all_deplibs_GCJ=yes
melunko@47
 16860
    if test "$GCC" = yes ; then
melunko@47
 16861
    	output_verbose_link_cmd='echo'
melunko@47
 16862
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
melunko@47
 16863
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
melunko@47
 16864
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
melunko@47
 16865
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
 16866
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
 16867
    else
melunko@47
 16868
      case $cc_basename in
melunko@47
 16869
        xlc*)
melunko@47
 16870
         output_verbose_link_cmd='echo'
melunko@47
 16871
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
melunko@47
 16872
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
melunko@47
 16873
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
melunko@47
 16874
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
 16875
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
melunko@47
 16876
          ;;
melunko@47
 16877
       *)
melunko@47
 16878
         ld_shlibs_GCJ=no
melunko@47
 16879
          ;;
melunko@47
 16880
      esac
melunko@47
 16881
    fi
melunko@47
 16882
      ;;
melunko@47
 16883
melunko@47
 16884
    dgux*)
melunko@47
 16885
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 16886
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
melunko@47
 16887
      hardcode_shlibpath_var_GCJ=no
melunko@47
 16888
      ;;
melunko@47
 16889
melunko@47
 16890
    freebsd1*)
melunko@47
 16891
      ld_shlibs_GCJ=no
melunko@47
 16892
      ;;
melunko@47
 16893
melunko@47
 16894
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
melunko@47
 16895
    # support.  Future versions do this automatically, but an explicit c++rt0.o
melunko@47
 16896
    # does not break anything, and helps significantly (at the cost of a little
melunko@47
 16897
    # extra space).
melunko@47
 16898
    freebsd2.2*)
melunko@47
 16899
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
melunko@47
 16900
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
melunko@47
 16901
      hardcode_direct_GCJ=yes
melunko@47
 16902
      hardcode_shlibpath_var_GCJ=no
melunko@47
 16903
      ;;
melunko@47
 16904
melunko@47
 16905
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
melunko@47
 16906
    freebsd2*)
melunko@47
 16907
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 16908
      hardcode_direct_GCJ=yes
melunko@47
 16909
      hardcode_minus_L_GCJ=yes
melunko@47
 16910
      hardcode_shlibpath_var_GCJ=no
melunko@47
 16911
      ;;
melunko@47
 16912
melunko@47
 16913
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
melunko@47
 16914
    freebsd* | kfreebsd*-gnu | dragonfly*)
melunko@47
 16915
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 16916
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
melunko@47
 16917
      hardcode_direct_GCJ=yes
melunko@47
 16918
      hardcode_shlibpath_var_GCJ=no
melunko@47
 16919
      ;;
melunko@47
 16920
melunko@47
 16921
    hpux9*)
melunko@47
 16922
      if test "$GCC" = yes; then
melunko@47
 16923
	archive_cmds_GCJ='$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'
melunko@47
 16924
      else
melunko@47
 16925
	archive_cmds_GCJ='$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'
melunko@47
 16926
      fi
melunko@47
 16927
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
melunko@47
 16928
      hardcode_libdir_separator_GCJ=:
melunko@47
 16929
      hardcode_direct_GCJ=yes
melunko@47
 16930
melunko@47
 16931
      # hardcode_minus_L: Not really in the search PATH,
melunko@47
 16932
      # but as the default location of the library.
melunko@47
 16933
      hardcode_minus_L_GCJ=yes
melunko@47
 16934
      export_dynamic_flag_spec_GCJ='${wl}-E'
melunko@47
 16935
      ;;
melunko@47
 16936
melunko@47
 16937
    hpux10* | hpux11*)
melunko@47
 16938
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
melunko@47
 16939
	case $host_cpu in
melunko@47
 16940
	hppa*64*|ia64*)
melunko@47
 16941
	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 16942
	  ;;
melunko@47
 16943
	*)
melunko@47
 16944
	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 16945
	  ;;
melunko@47
 16946
	esac
melunko@47
 16947
      else
melunko@47
 16948
	case $host_cpu in
melunko@47
 16949
	hppa*64*|ia64*)
melunko@47
 16950
	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 16951
	  ;;
melunko@47
 16952
	*)
melunko@47
 16953
	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 16954
	  ;;
melunko@47
 16955
	esac
melunko@47
 16956
      fi
melunko@47
 16957
      if test "$with_gnu_ld" = no; then
melunko@47
 16958
	case $host_cpu in
melunko@47
 16959
	hppa*64*)
melunko@47
 16960
	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
melunko@47
 16961
	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
melunko@47
 16962
	  hardcode_libdir_separator_GCJ=:
melunko@47
 16963
	  hardcode_direct_GCJ=no
melunko@47
 16964
	  hardcode_shlibpath_var_GCJ=no
melunko@47
 16965
	  ;;
melunko@47
 16966
	ia64*)
melunko@47
 16967
	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
melunko@47
 16968
	  hardcode_direct_GCJ=no
melunko@47
 16969
	  hardcode_shlibpath_var_GCJ=no
melunko@47
 16970
melunko@47
 16971
	  # hardcode_minus_L: Not really in the search PATH,
melunko@47
 16972
	  # but as the default location of the library.
melunko@47
 16973
	  hardcode_minus_L_GCJ=yes
melunko@47
 16974
	  ;;
melunko@47
 16975
	*)
melunko@47
 16976
	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
melunko@47
 16977
	  hardcode_libdir_separator_GCJ=:
melunko@47
 16978
	  hardcode_direct_GCJ=yes
melunko@47
 16979
	  export_dynamic_flag_spec_GCJ='${wl}-E'
melunko@47
 16980
melunko@47
 16981
	  # hardcode_minus_L: Not really in the search PATH,
melunko@47
 16982
	  # but as the default location of the library.
melunko@47
 16983
	  hardcode_minus_L_GCJ=yes
melunko@47
 16984
	  ;;
melunko@47
 16985
	esac
melunko@47
 16986
      fi
melunko@47
 16987
      ;;
melunko@47
 16988
melunko@47
 16989
    irix5* | irix6* | nonstopux*)
melunko@47
 16990
      if test "$GCC" = yes; then
melunko@47
 16991
	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
melunko@47
 16992
      else
melunko@47
 16993
	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
melunko@47
 16994
	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
melunko@47
 16995
      fi
melunko@47
 16996
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
melunko@47
 16997
      hardcode_libdir_separator_GCJ=:
melunko@47
 16998
      link_all_deplibs_GCJ=yes
melunko@47
 16999
      ;;
melunko@47
 17000
melunko@47
 17001
    netbsd*)
melunko@47
 17002
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
melunko@47
 17003
	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
melunko@47
 17004
      else
melunko@47
 17005
	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
melunko@47
 17006
      fi
melunko@47
 17007
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
melunko@47
 17008
      hardcode_direct_GCJ=yes
melunko@47
 17009
      hardcode_shlibpath_var_GCJ=no
melunko@47
 17010
      ;;
melunko@47
 17011
melunko@47
 17012
    newsos6)
melunko@47
 17013
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 17014
      hardcode_direct_GCJ=yes
melunko@47
 17015
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
melunko@47
 17016
      hardcode_libdir_separator_GCJ=:
melunko@47
 17017
      hardcode_shlibpath_var_GCJ=no
melunko@47
 17018
      ;;
melunko@47
 17019
melunko@47
 17020
    openbsd*)
melunko@47
 17021
      hardcode_direct_GCJ=yes
melunko@47
 17022
      hardcode_shlibpath_var_GCJ=no
melunko@47
 17023
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
melunko@47
 17024
	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 17025
	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
melunko@47
 17026
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
melunko@47
 17027
	export_dynamic_flag_spec_GCJ='${wl}-E'
melunko@47
 17028
      else
melunko@47
 17029
       case $host_os in
melunko@47
 17030
	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
melunko@47
 17031
	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 17032
	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
melunko@47
 17033
	   ;;
melunko@47
 17034
	 *)
melunko@47
 17035
	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 17036
	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
melunko@47
 17037
	   ;;
melunko@47
 17038
       esac
melunko@47
 17039
      fi
melunko@47
 17040
      ;;
melunko@47
 17041
melunko@47
 17042
    os2*)
melunko@47
 17043
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
melunko@47
 17044
      hardcode_minus_L_GCJ=yes
melunko@47
 17045
      allow_undefined_flag_GCJ=unsupported
melunko@47
 17046
      archive_cmds_GCJ='$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'
melunko@47
 17047
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
melunko@47
 17048
      ;;
melunko@47
 17049
melunko@47
 17050
    osf3*)
melunko@47
 17051
      if test "$GCC" = yes; then
melunko@47
 17052
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
melunko@47
 17053
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
melunko@47
 17054
      else
melunko@47
 17055
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
melunko@47
 17056
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
melunko@47
 17057
      fi
melunko@47
 17058
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
melunko@47
 17059
      hardcode_libdir_separator_GCJ=:
melunko@47
 17060
      ;;
melunko@47
 17061
melunko@47
 17062
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
melunko@47
 17063
      if test "$GCC" = yes; then
melunko@47
 17064
	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
melunko@47
 17065
	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
melunko@47
 17066
	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
melunko@47
 17067
      else
melunko@47
 17068
	allow_undefined_flag_GCJ=' -expect_unresolved \*'
melunko@47
 17069
	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
melunko@47
 17070
	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
melunko@47
 17071
	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
melunko@47
 17072
melunko@47
 17073
	# Both c and cxx compiler support -rpath directly
melunko@47
 17074
	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
melunko@47
 17075
      fi
melunko@47
 17076
      hardcode_libdir_separator_GCJ=:
melunko@47
 17077
      ;;
melunko@47
 17078
melunko@47
 17079
    sco3.2v5*)
melunko@47
 17080
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 17081
      hardcode_shlibpath_var_GCJ=no
melunko@47
 17082
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
melunko@47
 17083
      runpath_var=LD_RUN_PATH
melunko@47
 17084
      hardcode_runpath_var=yes
melunko@47
 17085
      ;;
melunko@47
 17086
melunko@47
 17087
    solaris*)
melunko@47
 17088
      no_undefined_flag_GCJ=' -z text'
melunko@47
 17089
      if test "$GCC" = yes; then
melunko@47
 17090
	wlarc='${wl}'
melunko@47
 17091
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 17092
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
melunko@47
 17093
	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
melunko@47
 17094
      else
melunko@47
 17095
	wlarc=''
melunko@47
 17096
	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 17097
	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
melunko@47
 17098
  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
melunko@47
 17099
      fi
melunko@47
 17100
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
melunko@47
 17101
      hardcode_shlibpath_var_GCJ=no
melunko@47
 17102
      case $host_os in
melunko@47
 17103
      solaris2.[0-5] | solaris2.[0-5].*) ;;
melunko@47
 17104
      *)
melunko@47
 17105
 	# The compiler driver will combine linker options so we
melunko@47
 17106
 	# cannot just pass the convience library names through
melunko@47
 17107
 	# without $wl, iff we do not link with $LD.
melunko@47
 17108
 	# Luckily, gcc supports the same syntax we need for Sun Studio.
melunko@47
 17109
 	# Supported since Solaris 2.6 (maybe 2.5.1?)
melunko@47
 17110
 	case $wlarc in
melunko@47
 17111
 	'')
melunko@47
 17112
 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
melunko@47
 17113
 	*)
melunko@47
 17114
 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
melunko@47
 17115
 	esac ;;
melunko@47
 17116
      esac
melunko@47
 17117
      link_all_deplibs_GCJ=yes
melunko@47
 17118
      ;;
melunko@47
 17119
melunko@47
 17120
    sunos4*)
melunko@47
 17121
      if test "x$host_vendor" = xsequent; then
melunko@47
 17122
	# Use $CC to link under sequent, because it throws in some extra .o
melunko@47
 17123
	# files that make .init and .fini sections work.
melunko@47
 17124
	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 17125
      else
melunko@47
 17126
	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 17127
      fi
melunko@47
 17128
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
melunko@47
 17129
      hardcode_direct_GCJ=yes
melunko@47
 17130
      hardcode_minus_L_GCJ=yes
melunko@47
 17131
      hardcode_shlibpath_var_GCJ=no
melunko@47
 17132
      ;;
melunko@47
 17133
melunko@47
 17134
    sysv4)
melunko@47
 17135
      case $host_vendor in
melunko@47
 17136
	sni)
melunko@47
 17137
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 17138
	  hardcode_direct_GCJ=yes # is this really true???
melunko@47
 17139
	;;
melunko@47
 17140
	siemens)
melunko@47
 17141
	  ## LD is ld it makes a PLAMLIB
melunko@47
 17142
	  ## CC just makes a GrossModule.
melunko@47
 17143
	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 17144
	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
melunko@47
 17145
	  hardcode_direct_GCJ=no
melunko@47
 17146
        ;;
melunko@47
 17147
	motorola)
melunko@47
 17148
	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 17149
	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
melunko@47
 17150
	;;
melunko@47
 17151
      esac
melunko@47
 17152
      runpath_var='LD_RUN_PATH'
melunko@47
 17153
      hardcode_shlibpath_var_GCJ=no
melunko@47
 17154
      ;;
melunko@47
 17155
melunko@47
 17156
    sysv4.3*)
melunko@47
 17157
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 17158
      hardcode_shlibpath_var_GCJ=no
melunko@47
 17159
      export_dynamic_flag_spec_GCJ='-Bexport'
melunko@47
 17160
      ;;
melunko@47
 17161
melunko@47
 17162
    sysv4*MP*)
melunko@47
 17163
      if test -d /usr/nec; then
melunko@47
 17164
	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 17165
	hardcode_shlibpath_var_GCJ=no
melunko@47
 17166
	runpath_var=LD_RUN_PATH
melunko@47
 17167
	hardcode_runpath_var=yes
melunko@47
 17168
	ld_shlibs_GCJ=yes
melunko@47
 17169
      fi
melunko@47
 17170
      ;;
melunko@47
 17171
melunko@47
 17172
    sysv4.2uw2*)
melunko@47
 17173
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 17174
      hardcode_direct_GCJ=yes
melunko@47
 17175
      hardcode_minus_L_GCJ=no
melunko@47
 17176
      hardcode_shlibpath_var_GCJ=no
melunko@47
 17177
      hardcode_runpath_var=yes
melunko@47
 17178
      runpath_var=LD_RUN_PATH
melunko@47
 17179
      ;;
melunko@47
 17180
melunko@47
 17181
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
melunko@47
 17182
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
melunko@47
 17183
      if test "$GCC" = yes; then
melunko@47
 17184
	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 17185
      else
melunko@47
 17186
	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
melunko@47
 17187
      fi
melunko@47
 17188
      runpath_var='LD_RUN_PATH'
melunko@47
 17189
      hardcode_shlibpath_var_GCJ=no
melunko@47
 17190
      ;;
melunko@47
 17191
melunko@47
 17192
    sysv5*)
melunko@47
 17193
      no_undefined_flag_GCJ=' -z text'
melunko@47
 17194
      # $CC -shared without GNU ld will not create a library from C++
melunko@47
 17195
      # object files and a static libstdc++, better avoid it by now
melunko@47
 17196
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 17197
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
melunko@47
 17198
  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
melunko@47
 17199
      hardcode_libdir_flag_spec_GCJ=
melunko@47
 17200
      hardcode_shlibpath_var_GCJ=no
melunko@47
 17201
      runpath_var='LD_RUN_PATH'
melunko@47
 17202
      ;;
melunko@47
 17203
melunko@47
 17204
    uts4*)
melunko@47
 17205
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
melunko@47
 17206
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
melunko@47
 17207
      hardcode_shlibpath_var_GCJ=no
melunko@47
 17208
      ;;
melunko@47
 17209
melunko@47
 17210
    *)
melunko@47
 17211
      ld_shlibs_GCJ=no
melunko@47
 17212
      ;;
melunko@47
 17213
    esac
melunko@47
 17214
  fi
melunko@47
 17215
melunko@47
 17216
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
melunko@47
 17217
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
melunko@47
 17218
test "$ld_shlibs_GCJ" = no && can_build_shared=no
melunko@47
 17219
melunko@47
 17220
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
melunko@47
 17221
if test "$GCC" = yes; then
melunko@47
 17222
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
melunko@47
 17223
fi
melunko@47
 17224
melunko@47
 17225
#
melunko@47
 17226
# Do we need to explicitly link libc?
melunko@47
 17227
#
melunko@47
 17228
case "x$archive_cmds_need_lc_GCJ" in
melunko@47
 17229
x|xyes)
melunko@47
 17230
  # Assume -lc should be added
melunko@47
 17231
  archive_cmds_need_lc_GCJ=yes
melunko@47
 17232
melunko@47
 17233
  if test "$enable_shared" = yes && test "$GCC" = yes; then
melunko@47
 17234
    case $archive_cmds_GCJ in
melunko@47
 17235
    *'~'*)
melunko@47
 17236
      # FIXME: we may have to deal with multi-command sequences.
melunko@47
 17237
      ;;
melunko@47
 17238
    '$CC '*)
melunko@47
 17239
      # Test whether the compiler implicitly links with -lc since on some
melunko@47
 17240
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
melunko@47
 17241
      # to ld, don't add -lc before -lgcc.
melunko@47
 17242
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
melunko@47
 17243
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
melunko@47
 17244
      $rm conftest*
melunko@47
 17245
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
melunko@47
 17246
melunko@47
 17247
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 17248
  (eval $ac_compile) 2>&5
melunko@47
 17249
  ac_status=$?
melunko@47
 17250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 17251
  (exit $ac_status); } 2>conftest.err; then
melunko@47
 17252
        soname=conftest
melunko@47
 17253
        lib=conftest
melunko@47
 17254
        libobjs=conftest.$ac_objext
melunko@47
 17255
        deplibs=
melunko@47
 17256
        wl=$lt_prog_compiler_wl_GCJ
melunko@47
 17257
        compiler_flags=-v
melunko@47
 17258
        linker_flags=-v
melunko@47
 17259
        verstring=
melunko@47
 17260
        output_objdir=.
melunko@47
 17261
        libname=conftest
melunko@47
 17262
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
melunko@47
 17263
        allow_undefined_flag_GCJ=
melunko@47
 17264
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
melunko@47
 17265
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
melunko@47
 17266
  ac_status=$?
melunko@47
 17267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 17268
  (exit $ac_status); }
melunko@47
 17269
        then
melunko@47
 17270
	  archive_cmds_need_lc_GCJ=no
melunko@47
 17271
        else
melunko@47
 17272
	  archive_cmds_need_lc_GCJ=yes
melunko@47
 17273
        fi
melunko@47
 17274
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
melunko@47
 17275
      else
melunko@47
 17276
        cat conftest.err 1>&5
melunko@47
 17277
      fi
melunko@47
 17278
      $rm conftest*
melunko@47
 17279
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
melunko@47
 17280
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
melunko@47
 17281
      ;;
melunko@47
 17282
    esac
melunko@47
 17283
  fi
melunko@47
 17284
  ;;
melunko@47
 17285
esac
melunko@47
 17286
melunko@47
 17287
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
melunko@47
 17288
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
melunko@47
 17289
library_names_spec=
melunko@47
 17290
libname_spec='lib$name'
melunko@47
 17291
soname_spec=
melunko@47
 17292
shrext_cmds=".so"
melunko@47
 17293
postinstall_cmds=
melunko@47
 17294
postuninstall_cmds=
melunko@47
 17295
finish_cmds=
melunko@47
 17296
finish_eval=
melunko@47
 17297
shlibpath_var=
melunko@47
 17298
shlibpath_overrides_runpath=unknown
melunko@47
 17299
version_type=none
melunko@47
 17300
dynamic_linker="$host_os ld.so"
melunko@47
 17301
sys_lib_dlsearch_path_spec="/lib /usr/lib"
melunko@47
 17302
if test "$GCC" = yes; then
melunko@47
 17303
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
melunko@47
 17304
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
melunko@47
 17305
    # if the path contains ";" then we assume it to be the separator
melunko@47
 17306
    # otherwise default to the standard path separator (i.e. ":") - it is
melunko@47
 17307
    # assumed that no part of a normal pathname contains ";" but that should
melunko@47
 17308
    # okay in the real world where ";" in dirpaths is itself problematic.
melunko@47
 17309
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
melunko@47
 17310
  else
melunko@47
 17311
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
melunko@47
 17312
  fi
melunko@47
 17313
else
melunko@47
 17314
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
melunko@47
 17315
fi
melunko@47
 17316
need_lib_prefix=unknown
melunko@47
 17317
hardcode_into_libs=no
melunko@47
 17318
melunko@47
 17319
# when you set need_version to no, make sure it does not cause -set_version
melunko@47
 17320
# flags to be left without arguments
melunko@47
 17321
need_version=unknown
melunko@47
 17322
melunko@47
 17323
case $host_os in
melunko@47
 17324
aix3*)
melunko@47
 17325
  version_type=linux
melunko@47
 17326
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
melunko@47
 17327
  shlibpath_var=LIBPATH
melunko@47
 17328
melunko@47
 17329
  # AIX 3 has no versioning support, so we append a major version to the name.
melunko@47
 17330
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17331
  ;;
melunko@47
 17332
melunko@47
 17333
aix4* | aix5*)
melunko@47
 17334
  version_type=linux
melunko@47
 17335
  need_lib_prefix=no
melunko@47
 17336
  need_version=no
melunko@47
 17337
  hardcode_into_libs=yes
melunko@47
 17338
  if test "$host_cpu" = ia64; then
melunko@47
 17339
    # AIX 5 supports IA64
melunko@47
 17340
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
melunko@47
 17341
    shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17342
  else
melunko@47
 17343
    # With GCC up to 2.95.x, collect2 would create an import file
melunko@47
 17344
    # for dependence libraries.  The import file would start with
melunko@47
 17345
    # the line `#! .'.  This would cause the generated library to
melunko@47
 17346
    # depend on `.', always an invalid library.  This was fixed in
melunko@47
 17347
    # development snapshots of GCC prior to 3.0.
melunko@47
 17348
    case $host_os in
melunko@47
 17349
      aix4 | aix4.[01] | aix4.[01].*)
melunko@47
 17350
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
melunko@47
 17351
	   echo ' yes '
melunko@47
 17352
	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
melunko@47
 17353
	:
melunko@47
 17354
      else
melunko@47
 17355
	can_build_shared=no
melunko@47
 17356
      fi
melunko@47
 17357
      ;;
melunko@47
 17358
    esac
melunko@47
 17359
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
melunko@47
 17360
    # soname into executable. Probably we can add versioning support to
melunko@47
 17361
    # collect2, so additional links can be useful in future.
melunko@47
 17362
    if test "$aix_use_runtimelinking" = yes; then
melunko@47
 17363
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
melunko@47
 17364
      # instead of lib<name>.a to let people know that these are not
melunko@47
 17365
      # typical AIX shared libraries.
melunko@47
 17366
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 17367
    else
melunko@47
 17368
      # We preserve .a as extension for shared libraries through AIX4.2
melunko@47
 17369
      # and later when we are not doing run time linking.
melunko@47
 17370
      library_names_spec='${libname}${release}.a $libname.a'
melunko@47
 17371
      soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17372
    fi
melunko@47
 17373
    shlibpath_var=LIBPATH
melunko@47
 17374
  fi
melunko@47
 17375
  ;;
melunko@47
 17376
melunko@47
 17377
amigaos*)
melunko@47
 17378
  library_names_spec='$libname.ixlibrary $libname.a'
melunko@47
 17379
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
melunko@47
 17380
  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'
melunko@47
 17381
  ;;
melunko@47
 17382
melunko@47
 17383
beos*)
melunko@47
 17384
  library_names_spec='${libname}${shared_ext}'
melunko@47
 17385
  dynamic_linker="$host_os ld.so"
melunko@47
 17386
  shlibpath_var=LIBRARY_PATH
melunko@47
 17387
  ;;
melunko@47
 17388
melunko@47
 17389
bsdi[45]*)
melunko@47
 17390
  version_type=linux
melunko@47
 17391
  need_version=no
melunko@47
 17392
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 17393
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17394
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
melunko@47
 17395
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17396
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
melunko@47
 17397
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
melunko@47
 17398
  # the default ld.so.conf also contains /usr/contrib/lib and
melunko@47
 17399
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
melunko@47
 17400
  # libtool to hard-code these into programs
melunko@47
 17401
  ;;
melunko@47
 17402
melunko@47
 17403
cygwin* | mingw* | pw32*)
melunko@47
 17404
  version_type=windows
melunko@47
 17405
  shrext_cmds=".dll"
melunko@47
 17406
  need_version=no
melunko@47
 17407
  need_lib_prefix=no
melunko@47
 17408
melunko@47
 17409
  case $GCC,$host_os in
melunko@47
 17410
  yes,cygwin* | yes,mingw* | yes,pw32*)
melunko@47
 17411
    library_names_spec='$libname.dll.a'
melunko@47
 17412
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
melunko@47
 17413
    postinstall_cmds='base_file=`basename \${file}`~
melunko@47
 17414
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
melunko@47
 17415
      dldir=$destdir/`dirname \$dlpath`~
melunko@47
 17416
      test -d \$dldir || mkdir -p \$dldir~
melunko@47
 17417
      $install_prog $dir/$dlname \$dldir/$dlname~
melunko@47
 17418
      chmod a+x \$dldir/$dlname'
melunko@47
 17419
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
melunko@47
 17420
      dlpath=$dir/\$dldll~
melunko@47
 17421
       $rm \$dlpath'
melunko@47
 17422
    shlibpath_overrides_runpath=yes
melunko@47
 17423
melunko@47
 17424
    case $host_os in
melunko@47
 17425
    cygwin*)
melunko@47
 17426
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
melunko@47
 17427
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
melunko@47
 17428
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
melunko@47
 17429
      ;;
melunko@47
 17430
    mingw*)
melunko@47
 17431
      # MinGW DLLs use traditional 'lib' prefix
melunko@47
 17432
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
melunko@47
 17433
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
melunko@47
 17434
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
melunko@47
 17435
        # It is most probably a Windows format PATH printed by
melunko@47
 17436
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
melunko@47
 17437
        # path with ; separators, and with drive letters. We can handle the
melunko@47
 17438
        # drive letters (cygwin fileutils understands them), so leave them,
melunko@47
 17439
        # especially as we might pass files found there to a mingw objdump,
melunko@47
 17440
        # which wouldn't understand a cygwinified path. Ahh.
melunko@47
 17441
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
melunko@47
 17442
      else
melunko@47
 17443
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
melunko@47
 17444
      fi
melunko@47
 17445
      ;;
melunko@47
 17446
    pw32*)
melunko@47
 17447
      # pw32 DLLs use 'pw' prefix rather than 'lib'
melunko@47
 17448
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
melunko@47
 17449
      ;;
melunko@47
 17450
    esac
melunko@47
 17451
    ;;
melunko@47
 17452
melunko@47
 17453
  *)
melunko@47
 17454
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
melunko@47
 17455
    ;;
melunko@47
 17456
  esac
melunko@47
 17457
  dynamic_linker='Win32 ld.exe'
melunko@47
 17458
  # FIXME: first we should search . and the directory the executable is in
melunko@47
 17459
  shlibpath_var=PATH
melunko@47
 17460
  ;;
melunko@47
 17461
melunko@47
 17462
darwin* | rhapsody*)
melunko@47
 17463
  dynamic_linker="$host_os dyld"
melunko@47
 17464
  version_type=darwin
melunko@47
 17465
  need_lib_prefix=no
melunko@47
 17466
  need_version=no
melunko@47
 17467
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
melunko@47
 17468
  soname_spec='${libname}${release}${major}$shared_ext'
melunko@47
 17469
  shlibpath_overrides_runpath=yes
melunko@47
 17470
  shlibpath_var=DYLD_LIBRARY_PATH
melunko@47
 17471
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
melunko@47
 17472
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
melunko@47
 17473
  if test "$GCC" = yes; then
melunko@47
 17474
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
melunko@47
 17475
  else
melunko@47
 17476
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
melunko@47
 17477
  fi
melunko@47
 17478
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
melunko@47
 17479
  ;;
melunko@47
 17480
melunko@47
 17481
dgux*)
melunko@47
 17482
  version_type=linux
melunko@47
 17483
  need_lib_prefix=no
melunko@47
 17484
  need_version=no
melunko@47
 17485
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
melunko@47
 17486
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17487
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17488
  ;;
melunko@47
 17489
melunko@47
 17490
freebsd1*)
melunko@47
 17491
  dynamic_linker=no
melunko@47
 17492
  ;;
melunko@47
 17493
melunko@47
 17494
kfreebsd*-gnu)
melunko@47
 17495
  version_type=linux
melunko@47
 17496
  need_lib_prefix=no
melunko@47
 17497
  need_version=no
melunko@47
 17498
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
melunko@47
 17499
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17500
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17501
  shlibpath_overrides_runpath=no
melunko@47
 17502
  hardcode_into_libs=yes
melunko@47
 17503
  dynamic_linker='GNU ld.so'
melunko@47
 17504
  ;;
melunko@47
 17505
melunko@47
 17506
freebsd* | dragonfly*)
melunko@47
 17507
  # DragonFly does not have aout.  When/if they implement a new
melunko@47
 17508
  # versioning mechanism, adjust this.
melunko@47
 17509
  if test -x /usr/bin/objformat; then
melunko@47
 17510
    objformat=`/usr/bin/objformat`
melunko@47
 17511
  else
melunko@47
 17512
    case $host_os in
melunko@47
 17513
    freebsd[123]*) objformat=aout ;;
melunko@47
 17514
    *) objformat=elf ;;
melunko@47
 17515
    esac
melunko@47
 17516
  fi
melunko@47
 17517
  version_type=freebsd-$objformat
melunko@47
 17518
  case $version_type in
melunko@47
 17519
    freebsd-elf*)
melunko@47
 17520
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
melunko@47
 17521
      need_version=no
melunko@47
 17522
      need_lib_prefix=no
melunko@47
 17523
      ;;
melunko@47
 17524
    freebsd-*)
melunko@47
 17525
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
melunko@47
 17526
      need_version=yes
melunko@47
 17527
      ;;
melunko@47
 17528
  esac
melunko@47
 17529
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17530
  case $host_os in
melunko@47
 17531
  freebsd2*)
melunko@47
 17532
    shlibpath_overrides_runpath=yes
melunko@47
 17533
    ;;
melunko@47
 17534
  freebsd3.[01]* | freebsdelf3.[01]*)
melunko@47
 17535
    shlibpath_overrides_runpath=yes
melunko@47
 17536
    hardcode_into_libs=yes
melunko@47
 17537
    ;;
melunko@47
 17538
  *) # from 3.2 on
melunko@47
 17539
    shlibpath_overrides_runpath=no
melunko@47
 17540
    hardcode_into_libs=yes
melunko@47
 17541
    ;;
melunko@47
 17542
  esac
melunko@47
 17543
  ;;
melunko@47
 17544
melunko@47
 17545
gnu*)
melunko@47
 17546
  version_type=linux
melunko@47
 17547
  need_lib_prefix=no
melunko@47
 17548
  need_version=no
melunko@47
 17549
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
melunko@47
 17550
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17551
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17552
  hardcode_into_libs=yes
melunko@47
 17553
  ;;
melunko@47
 17554
melunko@47
 17555
hpux9* | hpux10* | hpux11*)
melunko@47
 17556
  # Give a soname corresponding to the major version so that dld.sl refuses to
melunko@47
 17557
  # link against other versions.
melunko@47
 17558
  version_type=sunos
melunko@47
 17559
  need_lib_prefix=no
melunko@47
 17560
  need_version=no
melunko@47
 17561
  case $host_cpu in
melunko@47
 17562
  ia64*)
melunko@47
 17563
    shrext_cmds='.so'
melunko@47
 17564
    hardcode_into_libs=yes
melunko@47
 17565
    dynamic_linker="$host_os dld.so"
melunko@47
 17566
    shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17567
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
melunko@47
 17568
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 17569
    soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17570
    if test "X$HPUX_IA64_MODE" = X32; then
melunko@47
 17571
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
melunko@47
 17572
    else
melunko@47
 17573
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
melunko@47
 17574
    fi
melunko@47
 17575
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
melunko@47
 17576
    ;;
melunko@47
 17577
   hppa*64*)
melunko@47
 17578
     shrext_cmds='.sl'
melunko@47
 17579
     hardcode_into_libs=yes
melunko@47
 17580
     dynamic_linker="$host_os dld.sl"
melunko@47
 17581
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
melunko@47
 17582
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
melunko@47
 17583
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 17584
     soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17585
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
melunko@47
 17586
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
melunko@47
 17587
     ;;
melunko@47
 17588
   *)
melunko@47
 17589
    shrext_cmds='.sl'
melunko@47
 17590
    dynamic_linker="$host_os dld.sl"
melunko@47
 17591
    shlibpath_var=SHLIB_PATH
melunko@47
 17592
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
melunko@47
 17593
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 17594
    soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17595
    ;;
melunko@47
 17596
  esac
melunko@47
 17597
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
melunko@47
 17598
  postinstall_cmds='chmod 555 $lib'
melunko@47
 17599
  ;;
melunko@47
 17600
melunko@47
 17601
irix5* | irix6* | nonstopux*)
melunko@47
 17602
  case $host_os in
melunko@47
 17603
    nonstopux*) version_type=nonstopux ;;
melunko@47
 17604
    *)
melunko@47
 17605
	if test "$lt_cv_prog_gnu_ld" = yes; then
melunko@47
 17606
		version_type=linux
melunko@47
 17607
	else
melunko@47
 17608
		version_type=irix
melunko@47
 17609
	fi ;;
melunko@47
 17610
  esac
melunko@47
 17611
  need_lib_prefix=no
melunko@47
 17612
  need_version=no
melunko@47
 17613
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17614
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
melunko@47
 17615
  case $host_os in
melunko@47
 17616
  irix5* | nonstopux*)
melunko@47
 17617
    libsuff= shlibsuff=
melunko@47
 17618
    ;;
melunko@47
 17619
  *)
melunko@47
 17620
    case $LD in # libtool.m4 will add one of these switches to LD
melunko@47
 17621
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
melunko@47
 17622
      libsuff= shlibsuff= libmagic=32-bit;;
melunko@47
 17623
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
melunko@47
 17624
      libsuff=32 shlibsuff=N32 libmagic=N32;;
melunko@47
 17625
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
melunko@47
 17626
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
melunko@47
 17627
    *) libsuff= shlibsuff= libmagic=never-match;;
melunko@47
 17628
    esac
melunko@47
 17629
    ;;
melunko@47
 17630
  esac
melunko@47
 17631
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
melunko@47
 17632
  shlibpath_overrides_runpath=no
melunko@47
 17633
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
melunko@47
 17634
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
melunko@47
 17635
  hardcode_into_libs=yes
melunko@47
 17636
  ;;
melunko@47
 17637
melunko@47
 17638
# No shared lib support for Linux oldld, aout, or coff.
melunko@47
 17639
linux*oldld* | linux*aout* | linux*coff*)
melunko@47
 17640
  dynamic_linker=no
melunko@47
 17641
  ;;
melunko@47
 17642
melunko@47
 17643
# This must be Linux ELF.
melunko@47
 17644
linux*)
melunko@47
 17645
  version_type=linux
melunko@47
 17646
  need_lib_prefix=no
melunko@47
 17647
  need_version=no
melunko@47
 17648
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 17649
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17650
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
melunko@47
 17651
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17652
  shlibpath_overrides_runpath=no
melunko@47
 17653
  # This implies no fast_install, which is unacceptable.
melunko@47
 17654
  # Some rework will be needed to allow for fast_install
melunko@47
 17655
  # before this can be enabled.
melunko@47
 17656
  hardcode_into_libs=yes
melunko@47
 17657
melunko@47
 17658
  # Append ld.so.conf contents to the search path
melunko@47
 17659
  if test -f /etc/ld.so.conf; then
melunko@47
 17660
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
melunko@47
 17661
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
melunko@47
 17662
  fi
melunko@47
 17663
melunko@47
 17664
  # We used to test for /lib/ld.so.1 and disable shared libraries on
melunko@47
 17665
  # powerpc, because MkLinux only supported shared libraries with the
melunko@47
 17666
  # GNU dynamic linker.  Since this was broken with cross compilers,
melunko@47
 17667
  # most powerpc-linux boxes support dynamic linking these days and
melunko@47
 17668
  # people can always --disable-shared, the test was removed, and we
melunko@47
 17669
  # assume the GNU/Linux dynamic linker is in use.
melunko@47
 17670
  dynamic_linker='GNU/Linux ld.so'
melunko@47
 17671
  ;;
melunko@47
 17672
melunko@47
 17673
knetbsd*-gnu)
melunko@47
 17674
  version_type=linux
melunko@47
 17675
  need_lib_prefix=no
melunko@47
 17676
  need_version=no
melunko@47
 17677
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
melunko@47
 17678
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17679
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17680
  shlibpath_overrides_runpath=no
melunko@47
 17681
  hardcode_into_libs=yes
melunko@47
 17682
  dynamic_linker='GNU ld.so'
melunko@47
 17683
  ;;
melunko@47
 17684
melunko@47
 17685
netbsd*)
melunko@47
 17686
  version_type=sunos
melunko@47
 17687
  need_lib_prefix=no
melunko@47
 17688
  need_version=no
melunko@47
 17689
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
melunko@47
 17690
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
melunko@47
 17691
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
melunko@47
 17692
    dynamic_linker='NetBSD (a.out) ld.so'
melunko@47
 17693
  else
melunko@47
 17694
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
melunko@47
 17695
    soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17696
    dynamic_linker='NetBSD ld.elf_so'
melunko@47
 17697
  fi
melunko@47
 17698
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17699
  shlibpath_overrides_runpath=yes
melunko@47
 17700
  hardcode_into_libs=yes
melunko@47
 17701
  ;;
melunko@47
 17702
melunko@47
 17703
newsos6)
melunko@47
 17704
  version_type=linux
melunko@47
 17705
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 17706
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17707
  shlibpath_overrides_runpath=yes
melunko@47
 17708
  ;;
melunko@47
 17709
melunko@47
 17710
nto-qnx*)
melunko@47
 17711
  version_type=linux
melunko@47
 17712
  need_lib_prefix=no
melunko@47
 17713
  need_version=no
melunko@47
 17714
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 17715
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17716
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17717
  shlibpath_overrides_runpath=yes
melunko@47
 17718
  ;;
melunko@47
 17719
melunko@47
 17720
openbsd*)
melunko@47
 17721
  version_type=sunos
melunko@47
 17722
  need_lib_prefix=no
melunko@47
 17723
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
melunko@47
 17724
  case $host_os in
melunko@47
 17725
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
melunko@47
 17726
    *)                         need_version=no  ;;
melunko@47
 17727
  esac
melunko@47
 17728
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
melunko@47
 17729
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
melunko@47
 17730
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17731
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
melunko@47
 17732
    case $host_os in
melunko@47
 17733
      openbsd2.[89] | openbsd2.[89].*)
melunko@47
 17734
	shlibpath_overrides_runpath=no
melunko@47
 17735
	;;
melunko@47
 17736
      *)
melunko@47
 17737
	shlibpath_overrides_runpath=yes
melunko@47
 17738
	;;
melunko@47
 17739
      esac
melunko@47
 17740
  else
melunko@47
 17741
    shlibpath_overrides_runpath=yes
melunko@47
 17742
  fi
melunko@47
 17743
  ;;
melunko@47
 17744
melunko@47
 17745
os2*)
melunko@47
 17746
  libname_spec='$name'
melunko@47
 17747
  shrext_cmds=".dll"
melunko@47
 17748
  need_lib_prefix=no
melunko@47
 17749
  library_names_spec='$libname${shared_ext} $libname.a'
melunko@47
 17750
  dynamic_linker='OS/2 ld.exe'
melunko@47
 17751
  shlibpath_var=LIBPATH
melunko@47
 17752
  ;;
melunko@47
 17753
melunko@47
 17754
osf3* | osf4* | osf5*)
melunko@47
 17755
  version_type=osf
melunko@47
 17756
  need_lib_prefix=no
melunko@47
 17757
  need_version=no
melunko@47
 17758
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17759
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 17760
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17761
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
melunko@47
 17762
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
melunko@47
 17763
  ;;
melunko@47
 17764
melunko@47
 17765
sco3.2v5*)
melunko@47
 17766
  version_type=osf
melunko@47
 17767
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17768
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 17769
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17770
  ;;
melunko@47
 17771
melunko@47
 17772
solaris*)
melunko@47
 17773
  version_type=linux
melunko@47
 17774
  need_lib_prefix=no
melunko@47
 17775
  need_version=no
melunko@47
 17776
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 17777
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17778
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17779
  shlibpath_overrides_runpath=yes
melunko@47
 17780
  hardcode_into_libs=yes
melunko@47
 17781
  # ldd complains unless libraries are executable
melunko@47
 17782
  postinstall_cmds='chmod +x $lib'
melunko@47
 17783
  ;;
melunko@47
 17784
melunko@47
 17785
sunos4*)
melunko@47
 17786
  version_type=sunos
melunko@47
 17787
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
melunko@47
 17788
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
melunko@47
 17789
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17790
  shlibpath_overrides_runpath=yes
melunko@47
 17791
  if test "$with_gnu_ld" = yes; then
melunko@47
 17792
    need_lib_prefix=no
melunko@47
 17793
  fi
melunko@47
 17794
  need_version=yes
melunko@47
 17795
  ;;
melunko@47
 17796
melunko@47
 17797
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
melunko@47
 17798
  version_type=linux
melunko@47
 17799
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 17800
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17801
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17802
  case $host_vendor in
melunko@47
 17803
    sni)
melunko@47
 17804
      shlibpath_overrides_runpath=no
melunko@47
 17805
      need_lib_prefix=no
melunko@47
 17806
      export_dynamic_flag_spec='${wl}-Blargedynsym'
melunko@47
 17807
      runpath_var=LD_RUN_PATH
melunko@47
 17808
      ;;
melunko@47
 17809
    siemens)
melunko@47
 17810
      need_lib_prefix=no
melunko@47
 17811
      ;;
melunko@47
 17812
    motorola)
melunko@47
 17813
      need_lib_prefix=no
melunko@47
 17814
      need_version=no
melunko@47
 17815
      shlibpath_overrides_runpath=no
melunko@47
 17816
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
melunko@47
 17817
      ;;
melunko@47
 17818
  esac
melunko@47
 17819
  ;;
melunko@47
 17820
melunko@47
 17821
sysv4*MP*)
melunko@47
 17822
  if test -d /usr/nec ;then
melunko@47
 17823
    version_type=linux
melunko@47
 17824
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
melunko@47
 17825
    soname_spec='$libname${shared_ext}.$major'
melunko@47
 17826
    shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17827
  fi
melunko@47
 17828
  ;;
melunko@47
 17829
melunko@47
 17830
uts4*)
melunko@47
 17831
  version_type=linux
melunko@47
 17832
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
melunko@47
 17833
  soname_spec='${libname}${release}${shared_ext}$major'
melunko@47
 17834
  shlibpath_var=LD_LIBRARY_PATH
melunko@47
 17835
  ;;
melunko@47
 17836
melunko@47
 17837
*)
melunko@47
 17838
  dynamic_linker=no
melunko@47
 17839
  ;;
melunko@47
 17840
esac
melunko@47
 17841
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
melunko@47
 17842
echo "${ECHO_T}$dynamic_linker" >&6
melunko@47
 17843
test "$dynamic_linker" = no && can_build_shared=no
melunko@47
 17844
melunko@47
 17845
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
melunko@47
 17846
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
melunko@47
 17847
hardcode_action_GCJ=
melunko@47
 17848
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
melunko@47
 17849
   test -n "$runpath_var_GCJ" || \
melunko@47
 17850
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
melunko@47
 17851
melunko@47
 17852
  # We can hardcode non-existant directories.
melunko@47
 17853
  if test "$hardcode_direct_GCJ" != no &&
melunko@47
 17854
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
melunko@47
 17855
     # have to relink, otherwise we might link with an installed library
melunko@47
 17856
     # when we should be linking with a yet-to-be-installed one
melunko@47
 17857
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
melunko@47
 17858
     test "$hardcode_minus_L_GCJ" != no; then
melunko@47
 17859
    # Linking always hardcodes the temporary library directory.
melunko@47
 17860
    hardcode_action_GCJ=relink
melunko@47
 17861
  else
melunko@47
 17862
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
melunko@47
 17863
    hardcode_action_GCJ=immediate
melunko@47
 17864
  fi
melunko@47
 17865
else
melunko@47
 17866
  # We cannot hardcode anything, or else we can only hardcode existing
melunko@47
 17867
  # directories.
melunko@47
 17868
  hardcode_action_GCJ=unsupported
melunko@47
 17869
fi
melunko@47
 17870
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
melunko@47
 17871
echo "${ECHO_T}$hardcode_action_GCJ" >&6
melunko@47
 17872
melunko@47
 17873
if test "$hardcode_action_GCJ" = relink; then
melunko@47
 17874
  # Fast installation is not supported
melunko@47
 17875
  enable_fast_install=no
melunko@47
 17876
elif test "$shlibpath_overrides_runpath" = yes ||
melunko@47
 17877
     test "$enable_shared" = no; then
melunko@47
 17878
  # Fast installation is not necessary
melunko@47
 17879
  enable_fast_install=needless
melunko@47
 17880
fi
melunko@47
 17881
melunko@47
 17882
striplib=
melunko@47
 17883
old_striplib=
melunko@47
 17884
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
melunko@47
 17885
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
melunko@47
 17886
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
melunko@47
 17887
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
melunko@47
 17888
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
melunko@47
 17889
  echo "$as_me:$LINENO: result: yes" >&5
melunko@47
 17890
echo "${ECHO_T}yes" >&6
melunko@47
 17891
else
melunko@47
 17892
# FIXME - insert some real tests, host_os isn't really good enough
melunko@47
 17893
  case $host_os in
melunko@47
 17894
   darwin*)
melunko@47
 17895
       if test -n "$STRIP" ; then
melunko@47
 17896
         striplib="$STRIP -x"
melunko@47
 17897
         echo "$as_me:$LINENO: result: yes" >&5
melunko@47
 17898
echo "${ECHO_T}yes" >&6
melunko@47
 17899
       else
melunko@47
 17900
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 17901
echo "${ECHO_T}no" >&6
melunko@47
 17902
fi
melunko@47
 17903
       ;;
melunko@47
 17904
   *)
melunko@47
 17905
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 17906
echo "${ECHO_T}no" >&6
melunko@47
 17907
    ;;
melunko@47
 17908
  esac
melunko@47
 17909
fi
melunko@47
 17910
melunko@47
 17911
if test "x$enable_dlopen" != xyes; then
melunko@47
 17912
  enable_dlopen=unknown
melunko@47
 17913
  enable_dlopen_self=unknown
melunko@47
 17914
  enable_dlopen_self_static=unknown
melunko@47
 17915
else
melunko@47
 17916
  lt_cv_dlopen=no
melunko@47
 17917
  lt_cv_dlopen_libs=
melunko@47
 17918
melunko@47
 17919
  case $host_os in
melunko@47
 17920
  beos*)
melunko@47
 17921
    lt_cv_dlopen="load_add_on"
melunko@47
 17922
    lt_cv_dlopen_libs=
melunko@47
 17923
    lt_cv_dlopen_self=yes
melunko@47
 17924
    ;;
melunko@47
 17925
melunko@47
 17926
  mingw* | pw32*)
melunko@47
 17927
    lt_cv_dlopen="LoadLibrary"
melunko@47
 17928
    lt_cv_dlopen_libs=
melunko@47
 17929
   ;;
melunko@47
 17930
melunko@47
 17931
  cygwin*)
melunko@47
 17932
    lt_cv_dlopen="dlopen"
melunko@47
 17933
    lt_cv_dlopen_libs=
melunko@47
 17934
   ;;
melunko@47
 17935
melunko@47
 17936
  darwin*)
melunko@47
 17937
  # if libdl is installed we need to link against it
melunko@47
 17938
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
melunko@47
 17939
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
melunko@47
 17940
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
melunko@47
 17941
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 17942
else
melunko@47
 17943
  ac_check_lib_save_LIBS=$LIBS
melunko@47
 17944
LIBS="-ldl  $LIBS"
melunko@47
 17945
cat >conftest.$ac_ext <<_ACEOF
melunko@47
 17946
/* confdefs.h.  */
melunko@47
 17947
_ACEOF
melunko@47
 17948
cat confdefs.h >>conftest.$ac_ext
melunko@47
 17949
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 17950
/* end confdefs.h.  */
melunko@47
 17951
melunko@47
 17952
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 17953
#ifdef __cplusplus
melunko@47
 17954
extern "C"
melunko@47
 17955
#endif
melunko@47
 17956
/* We use char because int might match the return type of a gcc2
melunko@47
 17957
   builtin and then its argument prototype would still apply.  */
melunko@47
 17958
char dlopen ();
melunko@47
 17959
int
melunko@47
 17960
main ()
melunko@47
 17961
{
melunko@47
 17962
dlopen ();
melunko@47
 17963
  ;
melunko@47
 17964
  return 0;
melunko@47
 17965
}
melunko@47
 17966
_ACEOF
melunko@47
 17967
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 17968
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 17969
  (eval $ac_link) 2>conftest.er1
melunko@47
 17970
  ac_status=$?
melunko@47
 17971
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 17972
  rm -f conftest.er1
melunko@47
 17973
  cat conftest.err >&5
melunko@47
 17974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 17975
  (exit $ac_status); } &&
melunko@47
 17976
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 17977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 17978
  (eval $ac_try) 2>&5
melunko@47
 17979
  ac_status=$?
melunko@47
 17980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 17981
  (exit $ac_status); }; } &&
melunko@47
 17982
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 17983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 17984
  (eval $ac_try) 2>&5
melunko@47
 17985
  ac_status=$?
melunko@47
 17986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 17987
  (exit $ac_status); }; }; then
melunko@47
 17988
  ac_cv_lib_dl_dlopen=yes
melunko@47
 17989
else
melunko@47
 17990
  echo "$as_me: failed program was:" >&5
melunko@47
 17991
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 17992
melunko@47
 17993
ac_cv_lib_dl_dlopen=no
melunko@47
 17994
fi
melunko@47
 17995
rm -f conftest.err conftest.$ac_objext \
melunko@47
 17996
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 17997
LIBS=$ac_check_lib_save_LIBS
melunko@47
 17998
fi
melunko@47
 17999
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
melunko@47
 18000
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
melunko@47
 18001
if test $ac_cv_lib_dl_dlopen = yes; then
melunko@47
 18002
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
melunko@47
 18003
else
melunko@47
 18004
  
melunko@47
 18005
    lt_cv_dlopen="dyld"
melunko@47
 18006
    lt_cv_dlopen_libs=
melunko@47
 18007
    lt_cv_dlopen_self=yes
melunko@47
 18008
    
melunko@47
 18009
fi
melunko@47
 18010
melunko@47
 18011
   ;;
melunko@47
 18012
melunko@47
 18013
  *)
melunko@47
 18014
    echo "$as_me:$LINENO: checking for shl_load" >&5
melunko@47
 18015
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
melunko@47
 18016
if test "${ac_cv_func_shl_load+set}" = set; then
melunko@47
 18017
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 18018
else
melunko@47
 18019
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 18020
/* confdefs.h.  */
melunko@47
 18021
_ACEOF
melunko@47
 18022
cat confdefs.h >>conftest.$ac_ext
melunko@47
 18023
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 18024
/* end confdefs.h.  */
melunko@47
 18025
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
melunko@47
 18026
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
melunko@47
 18027
#define shl_load innocuous_shl_load
melunko@47
 18028
melunko@47
 18029
/* System header to define __stub macros and hopefully few prototypes,
melunko@47
 18030
    which can conflict with char shl_load (); below.
melunko@47
 18031
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
melunko@47
 18032
    <limits.h> exists even on freestanding compilers.  */
melunko@47
 18033
melunko@47
 18034
#ifdef __STDC__
melunko@47
 18035
# include <limits.h>
melunko@47
 18036
#else
melunko@47
 18037
# include <assert.h>
melunko@47
 18038
#endif
melunko@47
 18039
melunko@47
 18040
#undef shl_load
melunko@47
 18041
melunko@47
 18042
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 18043
#ifdef __cplusplus
melunko@47
 18044
extern "C"
melunko@47
 18045
{
melunko@47
 18046
#endif
melunko@47
 18047
/* We use char because int might match the return type of a gcc2
melunko@47
 18048
   builtin and then its argument prototype would still apply.  */
melunko@47
 18049
char shl_load ();
melunko@47
 18050
/* The GNU C library defines this for functions which it implements
melunko@47
 18051
    to always fail with ENOSYS.  Some functions are actually named
melunko@47
 18052
    something starting with __ and the normal name is an alias.  */
melunko@47
 18053
#if defined (__stub_shl_load) || defined (__stub___shl_load)
melunko@47
 18054
choke me
melunko@47
 18055
#else
melunko@47
 18056
char (*f) () = shl_load;
melunko@47
 18057
#endif
melunko@47
 18058
#ifdef __cplusplus
melunko@47
 18059
}
melunko@47
 18060
#endif
melunko@47
 18061
melunko@47
 18062
int
melunko@47
 18063
main ()
melunko@47
 18064
{
melunko@47
 18065
return f != shl_load;
melunko@47
 18066
  ;
melunko@47
 18067
  return 0;
melunko@47
 18068
}
melunko@47
 18069
_ACEOF
melunko@47
 18070
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 18071
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 18072
  (eval $ac_link) 2>conftest.er1
melunko@47
 18073
  ac_status=$?
melunko@47
 18074
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 18075
  rm -f conftest.er1
melunko@47
 18076
  cat conftest.err >&5
melunko@47
 18077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18078
  (exit $ac_status); } &&
melunko@47
 18079
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 18080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 18081
  (eval $ac_try) 2>&5
melunko@47
 18082
  ac_status=$?
melunko@47
 18083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18084
  (exit $ac_status); }; } &&
melunko@47
 18085
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 18086
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 18087
  (eval $ac_try) 2>&5
melunko@47
 18088
  ac_status=$?
melunko@47
 18089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18090
  (exit $ac_status); }; }; then
melunko@47
 18091
  ac_cv_func_shl_load=yes
melunko@47
 18092
else
melunko@47
 18093
  echo "$as_me: failed program was:" >&5
melunko@47
 18094
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 18095
melunko@47
 18096
ac_cv_func_shl_load=no
melunko@47
 18097
fi
melunko@47
 18098
rm -f conftest.err conftest.$ac_objext \
melunko@47
 18099
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 18100
fi
melunko@47
 18101
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
melunko@47
 18102
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
melunko@47
 18103
if test $ac_cv_func_shl_load = yes; then
melunko@47
 18104
  lt_cv_dlopen="shl_load"
melunko@47
 18105
else
melunko@47
 18106
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
melunko@47
 18107
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
melunko@47
 18108
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
melunko@47
 18109
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 18110
else
melunko@47
 18111
  ac_check_lib_save_LIBS=$LIBS
melunko@47
 18112
LIBS="-ldld  $LIBS"
melunko@47
 18113
cat >conftest.$ac_ext <<_ACEOF
melunko@47
 18114
/* confdefs.h.  */
melunko@47
 18115
_ACEOF
melunko@47
 18116
cat confdefs.h >>conftest.$ac_ext
melunko@47
 18117
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 18118
/* end confdefs.h.  */
melunko@47
 18119
melunko@47
 18120
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 18121
#ifdef __cplusplus
melunko@47
 18122
extern "C"
melunko@47
 18123
#endif
melunko@47
 18124
/* We use char because int might match the return type of a gcc2
melunko@47
 18125
   builtin and then its argument prototype would still apply.  */
melunko@47
 18126
char shl_load ();
melunko@47
 18127
int
melunko@47
 18128
main ()
melunko@47
 18129
{
melunko@47
 18130
shl_load ();
melunko@47
 18131
  ;
melunko@47
 18132
  return 0;
melunko@47
 18133
}
melunko@47
 18134
_ACEOF
melunko@47
 18135
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 18136
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 18137
  (eval $ac_link) 2>conftest.er1
melunko@47
 18138
  ac_status=$?
melunko@47
 18139
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 18140
  rm -f conftest.er1
melunko@47
 18141
  cat conftest.err >&5
melunko@47
 18142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18143
  (exit $ac_status); } &&
melunko@47
 18144
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 18145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 18146
  (eval $ac_try) 2>&5
melunko@47
 18147
  ac_status=$?
melunko@47
 18148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18149
  (exit $ac_status); }; } &&
melunko@47
 18150
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 18151
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 18152
  (eval $ac_try) 2>&5
melunko@47
 18153
  ac_status=$?
melunko@47
 18154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18155
  (exit $ac_status); }; }; then
melunko@47
 18156
  ac_cv_lib_dld_shl_load=yes
melunko@47
 18157
else
melunko@47
 18158
  echo "$as_me: failed program was:" >&5
melunko@47
 18159
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 18160
melunko@47
 18161
ac_cv_lib_dld_shl_load=no
melunko@47
 18162
fi
melunko@47
 18163
rm -f conftest.err conftest.$ac_objext \
melunko@47
 18164
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 18165
LIBS=$ac_check_lib_save_LIBS
melunko@47
 18166
fi
melunko@47
 18167
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
melunko@47
 18168
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
melunko@47
 18169
if test $ac_cv_lib_dld_shl_load = yes; then
melunko@47
 18170
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
melunko@47
 18171
else
melunko@47
 18172
  echo "$as_me:$LINENO: checking for dlopen" >&5
melunko@47
 18173
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
melunko@47
 18174
if test "${ac_cv_func_dlopen+set}" = set; then
melunko@47
 18175
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 18176
else
melunko@47
 18177
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 18178
/* confdefs.h.  */
melunko@47
 18179
_ACEOF
melunko@47
 18180
cat confdefs.h >>conftest.$ac_ext
melunko@47
 18181
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 18182
/* end confdefs.h.  */
melunko@47
 18183
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
melunko@47
 18184
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
melunko@47
 18185
#define dlopen innocuous_dlopen
melunko@47
 18186
melunko@47
 18187
/* System header to define __stub macros and hopefully few prototypes,
melunko@47
 18188
    which can conflict with char dlopen (); below.
melunko@47
 18189
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
melunko@47
 18190
    <limits.h> exists even on freestanding compilers.  */
melunko@47
 18191
melunko@47
 18192
#ifdef __STDC__
melunko@47
 18193
# include <limits.h>
melunko@47
 18194
#else
melunko@47
 18195
# include <assert.h>
melunko@47
 18196
#endif
melunko@47
 18197
melunko@47
 18198
#undef dlopen
melunko@47
 18199
melunko@47
 18200
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 18201
#ifdef __cplusplus
melunko@47
 18202
extern "C"
melunko@47
 18203
{
melunko@47
 18204
#endif
melunko@47
 18205
/* We use char because int might match the return type of a gcc2
melunko@47
 18206
   builtin and then its argument prototype would still apply.  */
melunko@47
 18207
char dlopen ();
melunko@47
 18208
/* The GNU C library defines this for functions which it implements
melunko@47
 18209
    to always fail with ENOSYS.  Some functions are actually named
melunko@47
 18210
    something starting with __ and the normal name is an alias.  */
melunko@47
 18211
#if defined (__stub_dlopen) || defined (__stub___dlopen)
melunko@47
 18212
choke me
melunko@47
 18213
#else
melunko@47
 18214
char (*f) () = dlopen;
melunko@47
 18215
#endif
melunko@47
 18216
#ifdef __cplusplus
melunko@47
 18217
}
melunko@47
 18218
#endif
melunko@47
 18219
melunko@47
 18220
int
melunko@47
 18221
main ()
melunko@47
 18222
{
melunko@47
 18223
return f != dlopen;
melunko@47
 18224
  ;
melunko@47
 18225
  return 0;
melunko@47
 18226
}
melunko@47
 18227
_ACEOF
melunko@47
 18228
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 18229
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 18230
  (eval $ac_link) 2>conftest.er1
melunko@47
 18231
  ac_status=$?
melunko@47
 18232
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 18233
  rm -f conftest.er1
melunko@47
 18234
  cat conftest.err >&5
melunko@47
 18235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18236
  (exit $ac_status); } &&
melunko@47
 18237
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 18238
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 18239
  (eval $ac_try) 2>&5
melunko@47
 18240
  ac_status=$?
melunko@47
 18241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18242
  (exit $ac_status); }; } &&
melunko@47
 18243
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 18244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 18245
  (eval $ac_try) 2>&5
melunko@47
 18246
  ac_status=$?
melunko@47
 18247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18248
  (exit $ac_status); }; }; then
melunko@47
 18249
  ac_cv_func_dlopen=yes
melunko@47
 18250
else
melunko@47
 18251
  echo "$as_me: failed program was:" >&5
melunko@47
 18252
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 18253
melunko@47
 18254
ac_cv_func_dlopen=no
melunko@47
 18255
fi
melunko@47
 18256
rm -f conftest.err conftest.$ac_objext \
melunko@47
 18257
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 18258
fi
melunko@47
 18259
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
melunko@47
 18260
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
melunko@47
 18261
if test $ac_cv_func_dlopen = yes; then
melunko@47
 18262
  lt_cv_dlopen="dlopen"
melunko@47
 18263
else
melunko@47
 18264
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
melunko@47
 18265
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
melunko@47
 18266
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
melunko@47
 18267
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 18268
else
melunko@47
 18269
  ac_check_lib_save_LIBS=$LIBS
melunko@47
 18270
LIBS="-ldl  $LIBS"
melunko@47
 18271
cat >conftest.$ac_ext <<_ACEOF
melunko@47
 18272
/* confdefs.h.  */
melunko@47
 18273
_ACEOF
melunko@47
 18274
cat confdefs.h >>conftest.$ac_ext
melunko@47
 18275
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 18276
/* end confdefs.h.  */
melunko@47
 18277
melunko@47
 18278
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 18279
#ifdef __cplusplus
melunko@47
 18280
extern "C"
melunko@47
 18281
#endif
melunko@47
 18282
/* We use char because int might match the return type of a gcc2
melunko@47
 18283
   builtin and then its argument prototype would still apply.  */
melunko@47
 18284
char dlopen ();
melunko@47
 18285
int
melunko@47
 18286
main ()
melunko@47
 18287
{
melunko@47
 18288
dlopen ();
melunko@47
 18289
  ;
melunko@47
 18290
  return 0;
melunko@47
 18291
}
melunko@47
 18292
_ACEOF
melunko@47
 18293
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 18294
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 18295
  (eval $ac_link) 2>conftest.er1
melunko@47
 18296
  ac_status=$?
melunko@47
 18297
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 18298
  rm -f conftest.er1
melunko@47
 18299
  cat conftest.err >&5
melunko@47
 18300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18301
  (exit $ac_status); } &&
melunko@47
 18302
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 18303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 18304
  (eval $ac_try) 2>&5
melunko@47
 18305
  ac_status=$?
melunko@47
 18306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18307
  (exit $ac_status); }; } &&
melunko@47
 18308
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 18309
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 18310
  (eval $ac_try) 2>&5
melunko@47
 18311
  ac_status=$?
melunko@47
 18312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18313
  (exit $ac_status); }; }; then
melunko@47
 18314
  ac_cv_lib_dl_dlopen=yes
melunko@47
 18315
else
melunko@47
 18316
  echo "$as_me: failed program was:" >&5
melunko@47
 18317
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 18318
melunko@47
 18319
ac_cv_lib_dl_dlopen=no
melunko@47
 18320
fi
melunko@47
 18321
rm -f conftest.err conftest.$ac_objext \
melunko@47
 18322
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 18323
LIBS=$ac_check_lib_save_LIBS
melunko@47
 18324
fi
melunko@47
 18325
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
melunko@47
 18326
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
melunko@47
 18327
if test $ac_cv_lib_dl_dlopen = yes; then
melunko@47
 18328
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
melunko@47
 18329
else
melunko@47
 18330
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
melunko@47
 18331
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
melunko@47
 18332
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
melunko@47
 18333
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 18334
else
melunko@47
 18335
  ac_check_lib_save_LIBS=$LIBS
melunko@47
 18336
LIBS="-lsvld  $LIBS"
melunko@47
 18337
cat >conftest.$ac_ext <<_ACEOF
melunko@47
 18338
/* confdefs.h.  */
melunko@47
 18339
_ACEOF
melunko@47
 18340
cat confdefs.h >>conftest.$ac_ext
melunko@47
 18341
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 18342
/* end confdefs.h.  */
melunko@47
 18343
melunko@47
 18344
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 18345
#ifdef __cplusplus
melunko@47
 18346
extern "C"
melunko@47
 18347
#endif
melunko@47
 18348
/* We use char because int might match the return type of a gcc2
melunko@47
 18349
   builtin and then its argument prototype would still apply.  */
melunko@47
 18350
char dlopen ();
melunko@47
 18351
int
melunko@47
 18352
main ()
melunko@47
 18353
{
melunko@47
 18354
dlopen ();
melunko@47
 18355
  ;
melunko@47
 18356
  return 0;
melunko@47
 18357
}
melunko@47
 18358
_ACEOF
melunko@47
 18359
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 18360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 18361
  (eval $ac_link) 2>conftest.er1
melunko@47
 18362
  ac_status=$?
melunko@47
 18363
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 18364
  rm -f conftest.er1
melunko@47
 18365
  cat conftest.err >&5
melunko@47
 18366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18367
  (exit $ac_status); } &&
melunko@47
 18368
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 18369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 18370
  (eval $ac_try) 2>&5
melunko@47
 18371
  ac_status=$?
melunko@47
 18372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18373
  (exit $ac_status); }; } &&
melunko@47
 18374
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 18375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 18376
  (eval $ac_try) 2>&5
melunko@47
 18377
  ac_status=$?
melunko@47
 18378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18379
  (exit $ac_status); }; }; then
melunko@47
 18380
  ac_cv_lib_svld_dlopen=yes
melunko@47
 18381
else
melunko@47
 18382
  echo "$as_me: failed program was:" >&5
melunko@47
 18383
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 18384
melunko@47
 18385
ac_cv_lib_svld_dlopen=no
melunko@47
 18386
fi
melunko@47
 18387
rm -f conftest.err conftest.$ac_objext \
melunko@47
 18388
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 18389
LIBS=$ac_check_lib_save_LIBS
melunko@47
 18390
fi
melunko@47
 18391
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
melunko@47
 18392
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
melunko@47
 18393
if test $ac_cv_lib_svld_dlopen = yes; then
melunko@47
 18394
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
melunko@47
 18395
else
melunko@47
 18396
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
melunko@47
 18397
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
melunko@47
 18398
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
melunko@47
 18399
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 18400
else
melunko@47
 18401
  ac_check_lib_save_LIBS=$LIBS
melunko@47
 18402
LIBS="-ldld  $LIBS"
melunko@47
 18403
cat >conftest.$ac_ext <<_ACEOF
melunko@47
 18404
/* confdefs.h.  */
melunko@47
 18405
_ACEOF
melunko@47
 18406
cat confdefs.h >>conftest.$ac_ext
melunko@47
 18407
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 18408
/* end confdefs.h.  */
melunko@47
 18409
melunko@47
 18410
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 18411
#ifdef __cplusplus
melunko@47
 18412
extern "C"
melunko@47
 18413
#endif
melunko@47
 18414
/* We use char because int might match the return type of a gcc2
melunko@47
 18415
   builtin and then its argument prototype would still apply.  */
melunko@47
 18416
char dld_link ();
melunko@47
 18417
int
melunko@47
 18418
main ()
melunko@47
 18419
{
melunko@47
 18420
dld_link ();
melunko@47
 18421
  ;
melunko@47
 18422
  return 0;
melunko@47
 18423
}
melunko@47
 18424
_ACEOF
melunko@47
 18425
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 18426
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 18427
  (eval $ac_link) 2>conftest.er1
melunko@47
 18428
  ac_status=$?
melunko@47
 18429
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 18430
  rm -f conftest.er1
melunko@47
 18431
  cat conftest.err >&5
melunko@47
 18432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18433
  (exit $ac_status); } &&
melunko@47
 18434
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 18435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 18436
  (eval $ac_try) 2>&5
melunko@47
 18437
  ac_status=$?
melunko@47
 18438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18439
  (exit $ac_status); }; } &&
melunko@47
 18440
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 18441
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 18442
  (eval $ac_try) 2>&5
melunko@47
 18443
  ac_status=$?
melunko@47
 18444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18445
  (exit $ac_status); }; }; then
melunko@47
 18446
  ac_cv_lib_dld_dld_link=yes
melunko@47
 18447
else
melunko@47
 18448
  echo "$as_me: failed program was:" >&5
melunko@47
 18449
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 18450
melunko@47
 18451
ac_cv_lib_dld_dld_link=no
melunko@47
 18452
fi
melunko@47
 18453
rm -f conftest.err conftest.$ac_objext \
melunko@47
 18454
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 18455
LIBS=$ac_check_lib_save_LIBS
melunko@47
 18456
fi
melunko@47
 18457
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
melunko@47
 18458
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
melunko@47
 18459
if test $ac_cv_lib_dld_dld_link = yes; then
melunko@47
 18460
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
melunko@47
 18461
fi
melunko@47
 18462
melunko@47
 18463
	      
melunko@47
 18464
fi
melunko@47
 18465
melunko@47
 18466
	    
melunko@47
 18467
fi
melunko@47
 18468
melunko@47
 18469
	  
melunko@47
 18470
fi
melunko@47
 18471
melunko@47
 18472
	
melunko@47
 18473
fi
melunko@47
 18474
melunko@47
 18475
      
melunko@47
 18476
fi
melunko@47
 18477
melunko@47
 18478
    ;;
melunko@47
 18479
  esac
melunko@47
 18480
melunko@47
 18481
  if test "x$lt_cv_dlopen" != xno; then
melunko@47
 18482
    enable_dlopen=yes
melunko@47
 18483
  else
melunko@47
 18484
    enable_dlopen=no
melunko@47
 18485
  fi
melunko@47
 18486
melunko@47
 18487
  case $lt_cv_dlopen in
melunko@47
 18488
  dlopen)
melunko@47
 18489
    save_CPPFLAGS="$CPPFLAGS"
melunko@47
 18490
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
melunko@47
 18491
melunko@47
 18492
    save_LDFLAGS="$LDFLAGS"
melunko@47
 18493
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
melunko@47
 18494
melunko@47
 18495
    save_LIBS="$LIBS"
melunko@47
 18496
    LIBS="$lt_cv_dlopen_libs $LIBS"
melunko@47
 18497
melunko@47
 18498
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
melunko@47
 18499
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
melunko@47
 18500
if test "${lt_cv_dlopen_self+set}" = set; then
melunko@47
 18501
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 18502
else
melunko@47
 18503
  	  if test "$cross_compiling" = yes; then :
melunko@47
 18504
  lt_cv_dlopen_self=cross
melunko@47
 18505
else
melunko@47
 18506
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
melunko@47
 18507
  lt_status=$lt_dlunknown
melunko@47
 18508
  cat > conftest.$ac_ext <<EOF
melunko@47
 18509
#line __oline__ "configure"
melunko@47
 18510
#include "confdefs.h"
melunko@47
 18511
melunko@47
 18512
#if HAVE_DLFCN_H
melunko@47
 18513
#include <dlfcn.h>
melunko@47
 18514
#endif
melunko@47
 18515
melunko@47
 18516
#include <stdio.h>
melunko@47
 18517
melunko@47
 18518
#ifdef RTLD_GLOBAL
melunko@47
 18519
#  define LT_DLGLOBAL		RTLD_GLOBAL
melunko@47
 18520
#else
melunko@47
 18521
#  ifdef DL_GLOBAL
melunko@47
 18522
#    define LT_DLGLOBAL		DL_GLOBAL
melunko@47
 18523
#  else
melunko@47
 18524
#    define LT_DLGLOBAL		0
melunko@47
 18525
#  endif
melunko@47
 18526
#endif
melunko@47
 18527
melunko@47
 18528
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
melunko@47
 18529
   find out it does not work in some platform. */
melunko@47
 18530
#ifndef LT_DLLAZY_OR_NOW
melunko@47
 18531
#  ifdef RTLD_LAZY
melunko@47
 18532
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
melunko@47
 18533
#  else
melunko@47
 18534
#    ifdef DL_LAZY
melunko@47
 18535
#      define LT_DLLAZY_OR_NOW		DL_LAZY
melunko@47
 18536
#    else
melunko@47
 18537
#      ifdef RTLD_NOW
melunko@47
 18538
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
melunko@47
 18539
#      else
melunko@47
 18540
#        ifdef DL_NOW
melunko@47
 18541
#          define LT_DLLAZY_OR_NOW	DL_NOW
melunko@47
 18542
#        else
melunko@47
 18543
#          define LT_DLLAZY_OR_NOW	0
melunko@47
 18544
#        endif
melunko@47
 18545
#      endif
melunko@47
 18546
#    endif
melunko@47
 18547
#  endif
melunko@47
 18548
#endif
melunko@47
 18549
melunko@47
 18550
#ifdef __cplusplus
melunko@47
 18551
extern "C" void exit (int);
melunko@47
 18552
#endif
melunko@47
 18553
melunko@47
 18554
void fnord() { int i=42;}
melunko@47
 18555
int main ()
melunko@47
 18556
{
melunko@47
 18557
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
melunko@47
 18558
  int status = $lt_dlunknown;
melunko@47
 18559
melunko@47
 18560
  if (self)
melunko@47
 18561
    {
melunko@47
 18562
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
melunko@47
 18563
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
melunko@47
 18564
      /* dlclose (self); */
melunko@47
 18565
    }
melunko@47
 18566
melunko@47
 18567
    exit (status);
melunko@47
 18568
}
melunko@47
 18569
EOF
melunko@47
 18570
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 18571
  (eval $ac_link) 2>&5
melunko@47
 18572
  ac_status=$?
melunko@47
 18573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18574
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
melunko@47
 18575
    (./conftest; exit; ) >&5 2>/dev/null
melunko@47
 18576
    lt_status=$?
melunko@47
 18577
    case x$lt_status in
melunko@47
 18578
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
melunko@47
 18579
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
melunko@47
 18580
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
melunko@47
 18581
    esac
melunko@47
 18582
  else :
melunko@47
 18583
    # compilation failed
melunko@47
 18584
    lt_cv_dlopen_self=no
melunko@47
 18585
  fi
melunko@47
 18586
fi
melunko@47
 18587
rm -fr conftest*
melunko@47
 18588
melunko@47
 18589
    
melunko@47
 18590
fi
melunko@47
 18591
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
melunko@47
 18592
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
melunko@47
 18593
melunko@47
 18594
    if test "x$lt_cv_dlopen_self" = xyes; then
melunko@47
 18595
      LDFLAGS="$LDFLAGS $link_static_flag"
melunko@47
 18596
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
melunko@47
 18597
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
melunko@47
 18598
if test "${lt_cv_dlopen_self_static+set}" = set; then
melunko@47
 18599
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 18600
else
melunko@47
 18601
  	  if test "$cross_compiling" = yes; then :
melunko@47
 18602
  lt_cv_dlopen_self_static=cross
melunko@47
 18603
else
melunko@47
 18604
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
melunko@47
 18605
  lt_status=$lt_dlunknown
melunko@47
 18606
  cat > conftest.$ac_ext <<EOF
melunko@47
 18607
#line __oline__ "configure"
melunko@47
 18608
#include "confdefs.h"
melunko@47
 18609
melunko@47
 18610
#if HAVE_DLFCN_H
melunko@47
 18611
#include <dlfcn.h>
melunko@47
 18612
#endif
melunko@47
 18613
melunko@47
 18614
#include <stdio.h>
melunko@47
 18615
melunko@47
 18616
#ifdef RTLD_GLOBAL
melunko@47
 18617
#  define LT_DLGLOBAL		RTLD_GLOBAL
melunko@47
 18618
#else
melunko@47
 18619
#  ifdef DL_GLOBAL
melunko@47
 18620
#    define LT_DLGLOBAL		DL_GLOBAL
melunko@47
 18621
#  else
melunko@47
 18622
#    define LT_DLGLOBAL		0
melunko@47
 18623
#  endif
melunko@47
 18624
#endif
melunko@47
 18625
melunko@47
 18626
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
melunko@47
 18627
   find out it does not work in some platform. */
melunko@47
 18628
#ifndef LT_DLLAZY_OR_NOW
melunko@47
 18629
#  ifdef RTLD_LAZY
melunko@47
 18630
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
melunko@47
 18631
#  else
melunko@47
 18632
#    ifdef DL_LAZY
melunko@47
 18633
#      define LT_DLLAZY_OR_NOW		DL_LAZY
melunko@47
 18634
#    else
melunko@47
 18635
#      ifdef RTLD_NOW
melunko@47
 18636
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
melunko@47
 18637
#      else
melunko@47
 18638
#        ifdef DL_NOW
melunko@47
 18639
#          define LT_DLLAZY_OR_NOW	DL_NOW
melunko@47
 18640
#        else
melunko@47
 18641
#          define LT_DLLAZY_OR_NOW	0
melunko@47
 18642
#        endif
melunko@47
 18643
#      endif
melunko@47
 18644
#    endif
melunko@47
 18645
#  endif
melunko@47
 18646
#endif
melunko@47
 18647
melunko@47
 18648
#ifdef __cplusplus
melunko@47
 18649
extern "C" void exit (int);
melunko@47
 18650
#endif
melunko@47
 18651
melunko@47
 18652
void fnord() { int i=42;}
melunko@47
 18653
int main ()
melunko@47
 18654
{
melunko@47
 18655
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
melunko@47
 18656
  int status = $lt_dlunknown;
melunko@47
 18657
melunko@47
 18658
  if (self)
melunko@47
 18659
    {
melunko@47
 18660
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
melunko@47
 18661
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
melunko@47
 18662
      /* dlclose (self); */
melunko@47
 18663
    }
melunko@47
 18664
melunko@47
 18665
    exit (status);
melunko@47
 18666
}
melunko@47
 18667
EOF
melunko@47
 18668
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 18669
  (eval $ac_link) 2>&5
melunko@47
 18670
  ac_status=$?
melunko@47
 18671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 18672
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
melunko@47
 18673
    (./conftest; exit; ) >&5 2>/dev/null
melunko@47
 18674
    lt_status=$?
melunko@47
 18675
    case x$lt_status in
melunko@47
 18676
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
melunko@47
 18677
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
melunko@47
 18678
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
melunko@47
 18679
    esac
melunko@47
 18680
  else :
melunko@47
 18681
    # compilation failed
melunko@47
 18682
    lt_cv_dlopen_self_static=no
melunko@47
 18683
  fi
melunko@47
 18684
fi
melunko@47
 18685
rm -fr conftest*
melunko@47
 18686
melunko@47
 18687
      
melunko@47
 18688
fi
melunko@47
 18689
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
melunko@47
 18690
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
melunko@47
 18691
    fi
melunko@47
 18692
melunko@47
 18693
    CPPFLAGS="$save_CPPFLAGS"
melunko@47
 18694
    LDFLAGS="$save_LDFLAGS"
melunko@47
 18695
    LIBS="$save_LIBS"
melunko@47
 18696
    ;;
melunko@47
 18697
  esac
melunko@47
 18698
melunko@47
 18699
  case $lt_cv_dlopen_self in
melunko@47
 18700
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
melunko@47
 18701
  *) enable_dlopen_self=unknown ;;
melunko@47
 18702
  esac
melunko@47
 18703
melunko@47
 18704
  case $lt_cv_dlopen_self_static in
melunko@47
 18705
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
melunko@47
 18706
  *) enable_dlopen_self_static=unknown ;;
melunko@47
 18707
  esac
melunko@47
 18708
fi
melunko@47
 18709
melunko@47
 18710
melunko@47
 18711
# The else clause should only fire when bootstrapping the
melunko@47
 18712
# libtool distribution, otherwise you forgot to ship ltmain.sh
melunko@47
 18713
# with your package, and you will get complaints that there are
melunko@47
 18714
# no rules to generate ltmain.sh.
melunko@47
 18715
if test -f "$ltmain"; then
melunko@47
 18716
  # See if we are running on zsh, and set the options which allow our commands through
melunko@47
 18717
  # without removal of \ escapes.
melunko@47
 18718
  if test -n "${ZSH_VERSION+set}" ; then
melunko@47
 18719
    setopt NO_GLOB_SUBST
melunko@47
 18720
  fi
melunko@47
 18721
  # Now quote all the things that may contain metacharacters while being
melunko@47
 18722
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
melunko@47
 18723
  # variables and quote the copies for generation of the libtool script.
melunko@47
 18724
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
melunko@47
 18725
    SED SHELL STRIP \
melunko@47
 18726
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
melunko@47
 18727
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
melunko@47
 18728
    deplibs_check_method reload_flag reload_cmds need_locks \
melunko@47
 18729
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
melunko@47
 18730
    lt_cv_sys_global_symbol_to_c_name_address \
melunko@47
 18731
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
melunko@47
 18732
    old_postinstall_cmds old_postuninstall_cmds \
melunko@47
 18733
    compiler_GCJ \
melunko@47
 18734
    CC_GCJ \
melunko@47
 18735
    LD_GCJ \
melunko@47
 18736
    lt_prog_compiler_wl_GCJ \
melunko@47
 18737
    lt_prog_compiler_pic_GCJ \
melunko@47
 18738
    lt_prog_compiler_static_GCJ \
melunko@47
 18739
    lt_prog_compiler_no_builtin_flag_GCJ \
melunko@47
 18740
    export_dynamic_flag_spec_GCJ \
melunko@47
 18741
    thread_safe_flag_spec_GCJ \
melunko@47
 18742
    whole_archive_flag_spec_GCJ \
melunko@47
 18743
    enable_shared_with_static_runtimes_GCJ \
melunko@47
 18744
    old_archive_cmds_GCJ \
melunko@47
 18745
    old_archive_from_new_cmds_GCJ \
melunko@47
 18746
    predep_objects_GCJ \
melunko@47
 18747
    postdep_objects_GCJ \
melunko@47
 18748
    predeps_GCJ \
melunko@47
 18749
    postdeps_GCJ \
melunko@47
 18750
    compiler_lib_search_path_GCJ \
melunko@47
 18751
    archive_cmds_GCJ \
melunko@47
 18752
    archive_expsym_cmds_GCJ \
melunko@47
 18753
    postinstall_cmds_GCJ \
melunko@47
 18754
    postuninstall_cmds_GCJ \
melunko@47
 18755
    old_archive_from_expsyms_cmds_GCJ \
melunko@47
 18756
    allow_undefined_flag_GCJ \
melunko@47
 18757
    no_undefined_flag_GCJ \
melunko@47
 18758
    export_symbols_cmds_GCJ \
melunko@47
 18759
    hardcode_libdir_flag_spec_GCJ \
melunko@47
 18760
    hardcode_libdir_flag_spec_ld_GCJ \
melunko@47
 18761
    hardcode_libdir_separator_GCJ \
melunko@47
 18762
    hardcode_automatic_GCJ \
melunko@47
 18763
    module_cmds_GCJ \
melunko@47
 18764
    module_expsym_cmds_GCJ \
melunko@47
 18765
    lt_cv_prog_compiler_c_o_GCJ \
melunko@47
 18766
    exclude_expsyms_GCJ \
melunko@47
 18767
    include_expsyms_GCJ; do
melunko@47
 18768
melunko@47
 18769
    case $var in
melunko@47
 18770
    old_archive_cmds_GCJ | \
melunko@47
 18771
    old_archive_from_new_cmds_GCJ | \
melunko@47
 18772
    archive_cmds_GCJ | \
melunko@47
 18773
    archive_expsym_cmds_GCJ | \
melunko@47
 18774
    module_cmds_GCJ | \
melunko@47
 18775
    module_expsym_cmds_GCJ | \
melunko@47
 18776
    old_archive_from_expsyms_cmds_GCJ | \
melunko@47
 18777
    export_symbols_cmds_GCJ | \
melunko@47
 18778
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
melunko@47
 18779
    postinstall_cmds | postuninstall_cmds | \
melunko@47
 18780
    old_postinstall_cmds | old_postuninstall_cmds | \
melunko@47
 18781
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
melunko@47
 18782
      # Double-quote double-evaled strings.
melunko@47
 18783
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
melunko@47
 18784
      ;;
melunko@47
 18785
    *)
melunko@47
 18786
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
melunko@47
 18787
      ;;
melunko@47
 18788
    esac
melunko@47
 18789
  done
melunko@47
 18790
melunko@47
 18791
  case $lt_echo in
melunko@47
 18792
  *'\$0 --fallback-echo"')
melunko@47
 18793
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
melunko@47
 18794
    ;;
melunko@47
 18795
  esac
melunko@47
 18796
melunko@47
 18797
cfgfile="$ofile"
melunko@47
 18798
melunko@47
 18799
  cat <<__EOF__ >> "$cfgfile"
melunko@47
 18800
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
melunko@47
 18801
melunko@47
 18802
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
melunko@47
 18803
melunko@47
 18804
# Shell to use when invoking shell scripts.
melunko@47
 18805
SHELL=$lt_SHELL
melunko@47
 18806
melunko@47
 18807
# Whether or not to build shared libraries.
melunko@47
 18808
build_libtool_libs=$enable_shared
melunko@47
 18809
melunko@47
 18810
# Whether or not to build static libraries.
melunko@47
 18811
build_old_libs=$enable_static
melunko@47
 18812
melunko@47
 18813
# Whether or not to add -lc for building shared libraries.
melunko@47
 18814
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
melunko@47
 18815
melunko@47
 18816
# Whether or not to disallow shared libs when runtime libs are static
melunko@47
 18817
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
melunko@47
 18818
melunko@47
 18819
# Whether or not to optimize for fast installation.
melunko@47
 18820
fast_install=$enable_fast_install
melunko@47
 18821
melunko@47
 18822
# The host system.
melunko@47
 18823
host_alias=$host_alias
melunko@47
 18824
host=$host
melunko@47
 18825
host_os=$host_os
melunko@47
 18826
melunko@47
 18827
# The build system.
melunko@47
 18828
build_alias=$build_alias
melunko@47
 18829
build=$build
melunko@47
 18830
build_os=$build_os
melunko@47
 18831
melunko@47
 18832
# An echo program that does not interpret backslashes.
melunko@47
 18833
echo=$lt_echo
melunko@47
 18834
melunko@47
 18835
# The archiver.
melunko@47
 18836
AR=$lt_AR
melunko@47
 18837
AR_FLAGS=$lt_AR_FLAGS
melunko@47
 18838
melunko@47
 18839
# A C compiler.
melunko@47
 18840
LTCC=$lt_LTCC
melunko@47
 18841
melunko@47
 18842
# A language-specific compiler.
melunko@47
 18843
CC=$lt_compiler_GCJ
melunko@47
 18844
melunko@47
 18845
# Is the compiler the GNU C compiler?
melunko@47
 18846
with_gcc=$GCC_GCJ
melunko@47
 18847
melunko@47
 18848
# An ERE matcher.
melunko@47
 18849
EGREP=$lt_EGREP
melunko@47
 18850
melunko@47
 18851
# The linker used to build libraries.
melunko@47
 18852
LD=$lt_LD_GCJ
melunko@47
 18853
melunko@47
 18854
# Whether we need hard or soft links.
melunko@47
 18855
LN_S=$lt_LN_S
melunko@47
 18856
melunko@47
 18857
# A BSD-compatible nm program.
melunko@47
 18858
NM=$lt_NM
melunko@47
 18859
melunko@47
 18860
# A symbol stripping program
melunko@47
 18861
STRIP=$lt_STRIP
melunko@47
 18862
melunko@47
 18863
# Used to examine libraries when file_magic_cmd begins "file"
melunko@47
 18864
MAGIC_CMD=$MAGIC_CMD
melunko@47
 18865
melunko@47
 18866
# Used on cygwin: DLL creation program.
melunko@47
 18867
DLLTOOL="$DLLTOOL"
melunko@47
 18868
melunko@47
 18869
# Used on cygwin: object dumper.
melunko@47
 18870
OBJDUMP="$OBJDUMP"
melunko@47
 18871
melunko@47
 18872
# Used on cygwin: assembler.
melunko@47
 18873
AS="$AS"
melunko@47
 18874
melunko@47
 18875
# The name of the directory that contains temporary libtool files.
melunko@47
 18876
objdir=$objdir
melunko@47
 18877
melunko@47
 18878
# How to create reloadable object files.
melunko@47
 18879
reload_flag=$lt_reload_flag
melunko@47
 18880
reload_cmds=$lt_reload_cmds
melunko@47
 18881
melunko@47
 18882
# How to pass a linker flag through the compiler.
melunko@47
 18883
wl=$lt_lt_prog_compiler_wl_GCJ
melunko@47
 18884
melunko@47
 18885
# Object file suffix (normally "o").
melunko@47
 18886
objext="$ac_objext"
melunko@47
 18887
melunko@47
 18888
# Old archive suffix (normally "a").
melunko@47
 18889
libext="$libext"
melunko@47
 18890
melunko@47
 18891
# Shared library suffix (normally ".so").
melunko@47
 18892
shrext_cmds='$shrext_cmds'
melunko@47
 18893
melunko@47
 18894
# Executable file suffix (normally "").
melunko@47
 18895
exeext="$exeext"
melunko@47
 18896
melunko@47
 18897
# Additional compiler flags for building library objects.
melunko@47
 18898
pic_flag=$lt_lt_prog_compiler_pic_GCJ
melunko@47
 18899
pic_mode=$pic_mode
melunko@47
 18900
melunko@47
 18901
# What is the maximum length of a command?
melunko@47
 18902
max_cmd_len=$lt_cv_sys_max_cmd_len
melunko@47
 18903
melunko@47
 18904
# Does compiler simultaneously support -c and -o options?
melunko@47
 18905
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
melunko@47
 18906
melunko@47
 18907
# Must we lock files when doing compilation?
melunko@47
 18908
need_locks=$lt_need_locks
melunko@47
 18909
melunko@47
 18910
# Do we need the lib prefix for modules?
melunko@47
 18911
need_lib_prefix=$need_lib_prefix
melunko@47
 18912
melunko@47
 18913
# Do we need a version for libraries?
melunko@47
 18914
need_version=$need_version
melunko@47
 18915
melunko@47
 18916
# Whether dlopen is supported.
melunko@47
 18917
dlopen_support=$enable_dlopen
melunko@47
 18918
melunko@47
 18919
# Whether dlopen of programs is supported.
melunko@47
 18920
dlopen_self=$enable_dlopen_self
melunko@47
 18921
melunko@47
 18922
# Whether dlopen of statically linked programs is supported.
melunko@47
 18923
dlopen_self_static=$enable_dlopen_self_static
melunko@47
 18924
melunko@47
 18925
# Compiler flag to prevent dynamic linking.
melunko@47
 18926
link_static_flag=$lt_lt_prog_compiler_static_GCJ
melunko@47
 18927
melunko@47
 18928
# Compiler flag to turn off builtin functions.
melunko@47
 18929
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
melunko@47
 18930
melunko@47
 18931
# Compiler flag to allow reflexive dlopens.
melunko@47
 18932
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
melunko@47
 18933
melunko@47
 18934
# Compiler flag to generate shared objects directly from archives.
melunko@47
 18935
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
melunko@47
 18936
melunko@47
 18937
# Compiler flag to generate thread-safe objects.
melunko@47
 18938
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
melunko@47
 18939
melunko@47
 18940
# Library versioning type.
melunko@47
 18941
version_type=$version_type
melunko@47
 18942
melunko@47
 18943
# Format of library name prefix.
melunko@47
 18944
libname_spec=$lt_libname_spec
melunko@47
 18945
melunko@47
 18946
# List of archive names.  First name is the real one, the rest are links.
melunko@47
 18947
# The last name is the one that the linker finds with -lNAME.
melunko@47
 18948
library_names_spec=$lt_library_names_spec
melunko@47
 18949
melunko@47
 18950
# The coded name of the library, if different from the real name.
melunko@47
 18951
soname_spec=$lt_soname_spec
melunko@47
 18952
melunko@47
 18953
# Commands used to build and install an old-style archive.
melunko@47
 18954
RANLIB=$lt_RANLIB
melunko@47
 18955
old_archive_cmds=$lt_old_archive_cmds_GCJ
melunko@47
 18956
old_postinstall_cmds=$lt_old_postinstall_cmds
melunko@47
 18957
old_postuninstall_cmds=$lt_old_postuninstall_cmds
melunko@47
 18958
melunko@47
 18959
# Create an old-style archive from a shared archive.
melunko@47
 18960
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
melunko@47
 18961
melunko@47
 18962
# Create a temporary old-style archive to link instead of a shared archive.
melunko@47
 18963
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
melunko@47
 18964
melunko@47
 18965
# Commands used to build and install a shared archive.
melunko@47
 18966
archive_cmds=$lt_archive_cmds_GCJ
melunko@47
 18967
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
melunko@47
 18968
postinstall_cmds=$lt_postinstall_cmds
melunko@47
 18969
postuninstall_cmds=$lt_postuninstall_cmds
melunko@47
 18970
melunko@47
 18971
# Commands used to build a loadable module (assumed same as above if empty)
melunko@47
 18972
module_cmds=$lt_module_cmds_GCJ
melunko@47
 18973
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
melunko@47
 18974
melunko@47
 18975
# Commands to strip libraries.
melunko@47
 18976
old_striplib=$lt_old_striplib
melunko@47
 18977
striplib=$lt_striplib
melunko@47
 18978
melunko@47
 18979
# Dependencies to place before the objects being linked to create a
melunko@47
 18980
# shared library.
melunko@47
 18981
predep_objects=$lt_predep_objects_GCJ
melunko@47
 18982
melunko@47
 18983
# Dependencies to place after the objects being linked to create a
melunko@47
 18984
# shared library.
melunko@47
 18985
postdep_objects=$lt_postdep_objects_GCJ
melunko@47
 18986
melunko@47
 18987
# Dependencies to place before the objects being linked to create a
melunko@47
 18988
# shared library.
melunko@47
 18989
predeps=$lt_predeps_GCJ
melunko@47
 18990
melunko@47
 18991
# Dependencies to place after the objects being linked to create a
melunko@47
 18992
# shared library.
melunko@47
 18993
postdeps=$lt_postdeps_GCJ
melunko@47
 18994
melunko@47
 18995
# The library search path used internally by the compiler when linking
melunko@47
 18996
# a shared library.
melunko@47
 18997
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
melunko@47
 18998
melunko@47
 18999
# Method to check whether dependent libraries are shared objects.
melunko@47
 19000
deplibs_check_method=$lt_deplibs_check_method
melunko@47
 19001
melunko@47
 19002
# Command to use when deplibs_check_method == file_magic.
melunko@47
 19003
file_magic_cmd=$lt_file_magic_cmd
melunko@47
 19004
melunko@47
 19005
# Flag that allows shared libraries with undefined symbols to be built.
melunko@47
 19006
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
melunko@47
 19007
melunko@47
 19008
# Flag that forces no undefined symbols.
melunko@47
 19009
no_undefined_flag=$lt_no_undefined_flag_GCJ
melunko@47
 19010
melunko@47
 19011
# Commands used to finish a libtool library installation in a directory.
melunko@47
 19012
finish_cmds=$lt_finish_cmds
melunko@47
 19013
melunko@47
 19014
# Same as above, but a single script fragment to be evaled but not shown.
melunko@47
 19015
finish_eval=$lt_finish_eval
melunko@47
 19016
melunko@47
 19017
# Take the output of nm and produce a listing of raw symbols and C names.
melunko@47
 19018
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
melunko@47
 19019
melunko@47
 19020
# Transform the output of nm in a proper C declaration
melunko@47
 19021
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
melunko@47
 19022
melunko@47
 19023
# Transform the output of nm in a C name address pair
melunko@47
 19024
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
melunko@47
 19025
melunko@47
 19026
# This is the shared library runtime path variable.
melunko@47
 19027
runpath_var=$runpath_var
melunko@47
 19028
melunko@47
 19029
# This is the shared library path variable.
melunko@47
 19030
shlibpath_var=$shlibpath_var
melunko@47
 19031
melunko@47
 19032
# Is shlibpath searched before the hard-coded library search path?
melunko@47
 19033
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
melunko@47
 19034
melunko@47
 19035
# How to hardcode a shared library path into an executable.
melunko@47
 19036
hardcode_action=$hardcode_action_GCJ
melunko@47
 19037
melunko@47
 19038
# Whether we should hardcode library paths into libraries.
melunko@47
 19039
hardcode_into_libs=$hardcode_into_libs
melunko@47
 19040
melunko@47
 19041
# Flag to hardcode \$libdir into a binary during linking.
melunko@47
 19042
# This must work even if \$libdir does not exist.
melunko@47
 19043
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
melunko@47
 19044
melunko@47
 19045
# If ld is used when linking, flag to hardcode \$libdir into
melunko@47
 19046
# a binary during linking. This must work even if \$libdir does
melunko@47
 19047
# not exist.
melunko@47
 19048
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
melunko@47
 19049
melunko@47
 19050
# Whether we need a single -rpath flag with a separated argument.
melunko@47
 19051
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
melunko@47
 19052
melunko@47
 19053
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
melunko@47
 19054
# resulting binary.
melunko@47
 19055
hardcode_direct=$hardcode_direct_GCJ
melunko@47
 19056
melunko@47
 19057
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
melunko@47
 19058
# resulting binary.
melunko@47
 19059
hardcode_minus_L=$hardcode_minus_L_GCJ
melunko@47
 19060
melunko@47
 19061
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
melunko@47
 19062
# the resulting binary.
melunko@47
 19063
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
melunko@47
 19064
melunko@47
 19065
# Set to yes if building a shared library automatically hardcodes DIR into the library
melunko@47
 19066
# and all subsequent libraries and executables linked against it.
melunko@47
 19067
hardcode_automatic=$hardcode_automatic_GCJ
melunko@47
 19068
melunko@47
 19069
# Variables whose values should be saved in libtool wrapper scripts and
melunko@47
 19070
# restored at relink time.
melunko@47
 19071
variables_saved_for_relink="$variables_saved_for_relink"
melunko@47
 19072
melunko@47
 19073
# Whether libtool must link a program against all its dependency libraries.
melunko@47
 19074
link_all_deplibs=$link_all_deplibs_GCJ
melunko@47
 19075
melunko@47
 19076
# Compile-time system search path for libraries
melunko@47
 19077
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
melunko@47
 19078
melunko@47
 19079
# Run-time system search path for libraries
melunko@47
 19080
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
melunko@47
 19081
melunko@47
 19082
# Fix the shell variable \$srcfile for the compiler.
melunko@47
 19083
fix_srcfile_path="$fix_srcfile_path_GCJ"
melunko@47
 19084
melunko@47
 19085
# Set to yes if exported symbols are required.
melunko@47
 19086
always_export_symbols=$always_export_symbols_GCJ
melunko@47
 19087
melunko@47
 19088
# The commands to list exported symbols.
melunko@47
 19089
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
melunko@47
 19090
melunko@47
 19091
# The commands to extract the exported symbol list from a shared archive.
melunko@47
 19092
extract_expsyms_cmds=$lt_extract_expsyms_cmds
melunko@47
 19093
melunko@47
 19094
# Symbols that should not be listed in the preloaded symbols.
melunko@47
 19095
exclude_expsyms=$lt_exclude_expsyms_GCJ
melunko@47
 19096
melunko@47
 19097
# Symbols that must always be exported.
melunko@47
 19098
include_expsyms=$lt_include_expsyms_GCJ
melunko@47
 19099
melunko@47
 19100
# ### END LIBTOOL TAG CONFIG: $tagname
melunko@47
 19101
melunko@47
 19102
__EOF__
melunko@47
 19103
melunko@47
 19104
melunko@47
 19105
else
melunko@47
 19106
  # If there is no Makefile yet, we rely on a make rule to execute
melunko@47
 19107
  # `config.status --recheck' to rerun these tests and create the
melunko@47
 19108
  # libtool script then.
melunko@47
 19109
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
melunko@47
 19110
  if test -f "$ltmain_in"; then
melunko@47
 19111
    test -f Makefile && make "$ltmain"
melunko@47
 19112
  fi
melunko@47
 19113
fi
melunko@47
 19114
melunko@47
 19115
melunko@47
 19116
ac_ext=c
melunko@47
 19117
ac_cpp='$CPP $CPPFLAGS'
melunko@47
 19118
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
 19119
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
 19120
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
 19121
melunko@47
 19122
CC="$lt_save_CC"
melunko@47
 19123
melunko@47
 19124
	else
melunko@47
 19125
	  tagname=""
melunko@47
 19126
	fi
melunko@47
 19127
	;;
melunko@47
 19128
melunko@47
 19129
      RC)
melunko@47
 19130
	
melunko@47
 19131
melunko@47
 19132
melunko@47
 19133
# Source file extension for RC test sources.
melunko@47
 19134
ac_ext=rc
melunko@47
 19135
melunko@47
 19136
# Object file extension for compiled RC test sources.
melunko@47
 19137
objext=o
melunko@47
 19138
objext_RC=$objext
melunko@47
 19139
melunko@47
 19140
# Code to be used in simple compile tests
melunko@47
 19141
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
melunko@47
 19142
melunko@47
 19143
# Code to be used in simple link tests
melunko@47
 19144
lt_simple_link_test_code="$lt_simple_compile_test_code"
melunko@47
 19145
melunko@47
 19146
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
melunko@47
 19147
melunko@47
 19148
# If no C compiler was specified, use CC.
melunko@47
 19149
LTCC=${LTCC-"$CC"}
melunko@47
 19150
melunko@47
 19151
# Allow CC to be a program name with arguments.
melunko@47
 19152
compiler=$CC
melunko@47
 19153
melunko@47
 19154
melunko@47
 19155
# save warnings/boilerplate of simple test code
melunko@47
 19156
ac_outfile=conftest.$ac_objext
melunko@47
 19157
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
melunko@47
 19158
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
melunko@47
 19159
_lt_compiler_boilerplate=`cat conftest.err`
melunko@47
 19160
$rm conftest*
melunko@47
 19161
melunko@47
 19162
ac_outfile=conftest.$ac_objext
melunko@47
 19163
printf "$lt_simple_link_test_code" >conftest.$ac_ext
melunko@47
 19164
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
melunko@47
 19165
_lt_linker_boilerplate=`cat conftest.err`
melunko@47
 19166
$rm conftest*
melunko@47
 19167
melunko@47
 19168
melunko@47
 19169
# Allow CC to be a program name with arguments.
melunko@47
 19170
lt_save_CC="$CC"
melunko@47
 19171
CC=${RC-"windres"}
melunko@47
 19172
compiler=$CC
melunko@47
 19173
compiler_RC=$CC
melunko@47
 19174
for cc_temp in $compiler""; do
melunko@47
 19175
  case $cc_temp in
melunko@47
 19176
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
melunko@47
 19177
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
melunko@47
 19178
    \-*) ;;
melunko@47
 19179
    *) break;;
melunko@47
 19180
  esac
melunko@47
 19181
done
melunko@47
 19182
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
melunko@47
 19183
melunko@47
 19184
lt_cv_prog_compiler_c_o_RC=yes
melunko@47
 19185
melunko@47
 19186
# The else clause should only fire when bootstrapping the
melunko@47
 19187
# libtool distribution, otherwise you forgot to ship ltmain.sh
melunko@47
 19188
# with your package, and you will get complaints that there are
melunko@47
 19189
# no rules to generate ltmain.sh.
melunko@47
 19190
if test -f "$ltmain"; then
melunko@47
 19191
  # See if we are running on zsh, and set the options which allow our commands through
melunko@47
 19192
  # without removal of \ escapes.
melunko@47
 19193
  if test -n "${ZSH_VERSION+set}" ; then
melunko@47
 19194
    setopt NO_GLOB_SUBST
melunko@47
 19195
  fi
melunko@47
 19196
  # Now quote all the things that may contain metacharacters while being
melunko@47
 19197
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
melunko@47
 19198
  # variables and quote the copies for generation of the libtool script.
melunko@47
 19199
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
melunko@47
 19200
    SED SHELL STRIP \
melunko@47
 19201
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
melunko@47
 19202
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
melunko@47
 19203
    deplibs_check_method reload_flag reload_cmds need_locks \
melunko@47
 19204
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
melunko@47
 19205
    lt_cv_sys_global_symbol_to_c_name_address \
melunko@47
 19206
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
melunko@47
 19207
    old_postinstall_cmds old_postuninstall_cmds \
melunko@47
 19208
    compiler_RC \
melunko@47
 19209
    CC_RC \
melunko@47
 19210
    LD_RC \
melunko@47
 19211
    lt_prog_compiler_wl_RC \
melunko@47
 19212
    lt_prog_compiler_pic_RC \
melunko@47
 19213
    lt_prog_compiler_static_RC \
melunko@47
 19214
    lt_prog_compiler_no_builtin_flag_RC \
melunko@47
 19215
    export_dynamic_flag_spec_RC \
melunko@47
 19216
    thread_safe_flag_spec_RC \
melunko@47
 19217
    whole_archive_flag_spec_RC \
melunko@47
 19218
    enable_shared_with_static_runtimes_RC \
melunko@47
 19219
    old_archive_cmds_RC \
melunko@47
 19220
    old_archive_from_new_cmds_RC \
melunko@47
 19221
    predep_objects_RC \
melunko@47
 19222
    postdep_objects_RC \
melunko@47
 19223
    predeps_RC \
melunko@47
 19224
    postdeps_RC \
melunko@47
 19225
    compiler_lib_search_path_RC \
melunko@47
 19226
    archive_cmds_RC \
melunko@47
 19227
    archive_expsym_cmds_RC \
melunko@47
 19228
    postinstall_cmds_RC \
melunko@47
 19229
    postuninstall_cmds_RC \
melunko@47
 19230
    old_archive_from_expsyms_cmds_RC \
melunko@47
 19231
    allow_undefined_flag_RC \
melunko@47
 19232
    no_undefined_flag_RC \
melunko@47
 19233
    export_symbols_cmds_RC \
melunko@47
 19234
    hardcode_libdir_flag_spec_RC \
melunko@47
 19235
    hardcode_libdir_flag_spec_ld_RC \
melunko@47
 19236
    hardcode_libdir_separator_RC \
melunko@47
 19237
    hardcode_automatic_RC \
melunko@47
 19238
    module_cmds_RC \
melunko@47
 19239
    module_expsym_cmds_RC \
melunko@47
 19240
    lt_cv_prog_compiler_c_o_RC \
melunko@47
 19241
    exclude_expsyms_RC \
melunko@47
 19242
    include_expsyms_RC; do
melunko@47
 19243
melunko@47
 19244
    case $var in
melunko@47
 19245
    old_archive_cmds_RC | \
melunko@47
 19246
    old_archive_from_new_cmds_RC | \
melunko@47
 19247
    archive_cmds_RC | \
melunko@47
 19248
    archive_expsym_cmds_RC | \
melunko@47
 19249
    module_cmds_RC | \
melunko@47
 19250
    module_expsym_cmds_RC | \
melunko@47
 19251
    old_archive_from_expsyms_cmds_RC | \
melunko@47
 19252
    export_symbols_cmds_RC | \
melunko@47
 19253
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
melunko@47
 19254
    postinstall_cmds | postuninstall_cmds | \
melunko@47
 19255
    old_postinstall_cmds | old_postuninstall_cmds | \
melunko@47
 19256
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
melunko@47
 19257
      # Double-quote double-evaled strings.
melunko@47
 19258
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
melunko@47
 19259
      ;;
melunko@47
 19260
    *)
melunko@47
 19261
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
melunko@47
 19262
      ;;
melunko@47
 19263
    esac
melunko@47
 19264
  done
melunko@47
 19265
melunko@47
 19266
  case $lt_echo in
melunko@47
 19267
  *'\$0 --fallback-echo"')
melunko@47
 19268
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
melunko@47
 19269
    ;;
melunko@47
 19270
  esac
melunko@47
 19271
melunko@47
 19272
cfgfile="$ofile"
melunko@47
 19273
melunko@47
 19274
  cat <<__EOF__ >> "$cfgfile"
melunko@47
 19275
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
melunko@47
 19276
melunko@47
 19277
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
melunko@47
 19278
melunko@47
 19279
# Shell to use when invoking shell scripts.
melunko@47
 19280
SHELL=$lt_SHELL
melunko@47
 19281
melunko@47
 19282
# Whether or not to build shared libraries.
melunko@47
 19283
build_libtool_libs=$enable_shared
melunko@47
 19284
melunko@47
 19285
# Whether or not to build static libraries.
melunko@47
 19286
build_old_libs=$enable_static
melunko@47
 19287
melunko@47
 19288
# Whether or not to add -lc for building shared libraries.
melunko@47
 19289
build_libtool_need_lc=$archive_cmds_need_lc_RC
melunko@47
 19290
melunko@47
 19291
# Whether or not to disallow shared libs when runtime libs are static
melunko@47
 19292
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
melunko@47
 19293
melunko@47
 19294
# Whether or not to optimize for fast installation.
melunko@47
 19295
fast_install=$enable_fast_install
melunko@47
 19296
melunko@47
 19297
# The host system.
melunko@47
 19298
host_alias=$host_alias
melunko@47
 19299
host=$host
melunko@47
 19300
host_os=$host_os
melunko@47
 19301
melunko@47
 19302
# The build system.
melunko@47
 19303
build_alias=$build_alias
melunko@47
 19304
build=$build
melunko@47
 19305
build_os=$build_os
melunko@47
 19306
melunko@47
 19307
# An echo program that does not interpret backslashes.
melunko@47
 19308
echo=$lt_echo
melunko@47
 19309
melunko@47
 19310
# The archiver.
melunko@47
 19311
AR=$lt_AR
melunko@47
 19312
AR_FLAGS=$lt_AR_FLAGS
melunko@47
 19313
melunko@47
 19314
# A C compiler.
melunko@47
 19315
LTCC=$lt_LTCC
melunko@47
 19316
melunko@47
 19317
# A language-specific compiler.
melunko@47
 19318
CC=$lt_compiler_RC
melunko@47
 19319
melunko@47
 19320
# Is the compiler the GNU C compiler?
melunko@47
 19321
with_gcc=$GCC_RC
melunko@47
 19322
melunko@47
 19323
# An ERE matcher.
melunko@47
 19324
EGREP=$lt_EGREP
melunko@47
 19325
melunko@47
 19326
# The linker used to build libraries.
melunko@47
 19327
LD=$lt_LD_RC
melunko@47
 19328
melunko@47
 19329
# Whether we need hard or soft links.
melunko@47
 19330
LN_S=$lt_LN_S
melunko@47
 19331
melunko@47
 19332
# A BSD-compatible nm program.
melunko@47
 19333
NM=$lt_NM
melunko@47
 19334
melunko@47
 19335
# A symbol stripping program
melunko@47
 19336
STRIP=$lt_STRIP
melunko@47
 19337
melunko@47
 19338
# Used to examine libraries when file_magic_cmd begins "file"
melunko@47
 19339
MAGIC_CMD=$MAGIC_CMD
melunko@47
 19340
melunko@47
 19341
# Used on cygwin: DLL creation program.
melunko@47
 19342
DLLTOOL="$DLLTOOL"
melunko@47
 19343
melunko@47
 19344
# Used on cygwin: object dumper.
melunko@47
 19345
OBJDUMP="$OBJDUMP"
melunko@47
 19346
melunko@47
 19347
# Used on cygwin: assembler.
melunko@47
 19348
AS="$AS"
melunko@47
 19349
melunko@47
 19350
# The name of the directory that contains temporary libtool files.
melunko@47
 19351
objdir=$objdir
melunko@47
 19352
melunko@47
 19353
# How to create reloadable object files.
melunko@47
 19354
reload_flag=$lt_reload_flag
melunko@47
 19355
reload_cmds=$lt_reload_cmds
melunko@47
 19356
melunko@47
 19357
# How to pass a linker flag through the compiler.
melunko@47
 19358
wl=$lt_lt_prog_compiler_wl_RC
melunko@47
 19359
melunko@47
 19360
# Object file suffix (normally "o").
melunko@47
 19361
objext="$ac_objext"
melunko@47
 19362
melunko@47
 19363
# Old archive suffix (normally "a").
melunko@47
 19364
libext="$libext"
melunko@47
 19365
melunko@47
 19366
# Shared library suffix (normally ".so").
melunko@47
 19367
shrext_cmds='$shrext_cmds'
melunko@47
 19368
melunko@47
 19369
# Executable file suffix (normally "").
melunko@47
 19370
exeext="$exeext"
melunko@47
 19371
melunko@47
 19372
# Additional compiler flags for building library objects.
melunko@47
 19373
pic_flag=$lt_lt_prog_compiler_pic_RC
melunko@47
 19374
pic_mode=$pic_mode
melunko@47
 19375
melunko@47
 19376
# What is the maximum length of a command?
melunko@47
 19377
max_cmd_len=$lt_cv_sys_max_cmd_len
melunko@47
 19378
melunko@47
 19379
# Does compiler simultaneously support -c and -o options?
melunko@47
 19380
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
melunko@47
 19381
melunko@47
 19382
# Must we lock files when doing compilation?
melunko@47
 19383
need_locks=$lt_need_locks
melunko@47
 19384
melunko@47
 19385
# Do we need the lib prefix for modules?
melunko@47
 19386
need_lib_prefix=$need_lib_prefix
melunko@47
 19387
melunko@47
 19388
# Do we need a version for libraries?
melunko@47
 19389
need_version=$need_version
melunko@47
 19390
melunko@47
 19391
# Whether dlopen is supported.
melunko@47
 19392
dlopen_support=$enable_dlopen
melunko@47
 19393
melunko@47
 19394
# Whether dlopen of programs is supported.
melunko@47
 19395
dlopen_self=$enable_dlopen_self
melunko@47
 19396
melunko@47
 19397
# Whether dlopen of statically linked programs is supported.
melunko@47
 19398
dlopen_self_static=$enable_dlopen_self_static
melunko@47
 19399
melunko@47
 19400
# Compiler flag to prevent dynamic linking.
melunko@47
 19401
link_static_flag=$lt_lt_prog_compiler_static_RC
melunko@47
 19402
melunko@47
 19403
# Compiler flag to turn off builtin functions.
melunko@47
 19404
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
melunko@47
 19405
melunko@47
 19406
# Compiler flag to allow reflexive dlopens.
melunko@47
 19407
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
melunko@47
 19408
melunko@47
 19409
# Compiler flag to generate shared objects directly from archives.
melunko@47
 19410
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
melunko@47
 19411
melunko@47
 19412
# Compiler flag to generate thread-safe objects.
melunko@47
 19413
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
melunko@47
 19414
melunko@47
 19415
# Library versioning type.
melunko@47
 19416
version_type=$version_type
melunko@47
 19417
melunko@47
 19418
# Format of library name prefix.
melunko@47
 19419
libname_spec=$lt_libname_spec
melunko@47
 19420
melunko@47
 19421
# List of archive names.  First name is the real one, the rest are links.
melunko@47
 19422
# The last name is the one that the linker finds with -lNAME.
melunko@47
 19423
library_names_spec=$lt_library_names_spec
melunko@47
 19424
melunko@47
 19425
# The coded name of the library, if different from the real name.
melunko@47
 19426
soname_spec=$lt_soname_spec
melunko@47
 19427
melunko@47
 19428
# Commands used to build and install an old-style archive.
melunko@47
 19429
RANLIB=$lt_RANLIB
melunko@47
 19430
old_archive_cmds=$lt_old_archive_cmds_RC
melunko@47
 19431
old_postinstall_cmds=$lt_old_postinstall_cmds
melunko@47
 19432
old_postuninstall_cmds=$lt_old_postuninstall_cmds
melunko@47
 19433
melunko@47
 19434
# Create an old-style archive from a shared archive.
melunko@47
 19435
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
melunko@47
 19436
melunko@47
 19437
# Create a temporary old-style archive to link instead of a shared archive.
melunko@47
 19438
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
melunko@47
 19439
melunko@47
 19440
# Commands used to build and install a shared archive.
melunko@47
 19441
archive_cmds=$lt_archive_cmds_RC
melunko@47
 19442
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
melunko@47
 19443
postinstall_cmds=$lt_postinstall_cmds
melunko@47
 19444
postuninstall_cmds=$lt_postuninstall_cmds
melunko@47
 19445
melunko@47
 19446
# Commands used to build a loadable module (assumed same as above if empty)
melunko@47
 19447
module_cmds=$lt_module_cmds_RC
melunko@47
 19448
module_expsym_cmds=$lt_module_expsym_cmds_RC
melunko@47
 19449
melunko@47
 19450
# Commands to strip libraries.
melunko@47
 19451
old_striplib=$lt_old_striplib
melunko@47
 19452
striplib=$lt_striplib
melunko@47
 19453
melunko@47
 19454
# Dependencies to place before the objects being linked to create a
melunko@47
 19455
# shared library.
melunko@47
 19456
predep_objects=$lt_predep_objects_RC
melunko@47
 19457
melunko@47
 19458
# Dependencies to place after the objects being linked to create a
melunko@47
 19459
# shared library.
melunko@47
 19460
postdep_objects=$lt_postdep_objects_RC
melunko@47
 19461
melunko@47
 19462
# Dependencies to place before the objects being linked to create a
melunko@47
 19463
# shared library.
melunko@47
 19464
predeps=$lt_predeps_RC
melunko@47
 19465
melunko@47
 19466
# Dependencies to place after the objects being linked to create a
melunko@47
 19467
# shared library.
melunko@47
 19468
postdeps=$lt_postdeps_RC
melunko@47
 19469
melunko@47
 19470
# The library search path used internally by the compiler when linking
melunko@47
 19471
# a shared library.
melunko@47
 19472
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
melunko@47
 19473
melunko@47
 19474
# Method to check whether dependent libraries are shared objects.
melunko@47
 19475
deplibs_check_method=$lt_deplibs_check_method
melunko@47
 19476
melunko@47
 19477
# Command to use when deplibs_check_method == file_magic.
melunko@47
 19478
file_magic_cmd=$lt_file_magic_cmd
melunko@47
 19479
melunko@47
 19480
# Flag that allows shared libraries with undefined symbols to be built.
melunko@47
 19481
allow_undefined_flag=$lt_allow_undefined_flag_RC
melunko@47
 19482
melunko@47
 19483
# Flag that forces no undefined symbols.
melunko@47
 19484
no_undefined_flag=$lt_no_undefined_flag_RC
melunko@47
 19485
melunko@47
 19486
# Commands used to finish a libtool library installation in a directory.
melunko@47
 19487
finish_cmds=$lt_finish_cmds
melunko@47
 19488
melunko@47
 19489
# Same as above, but a single script fragment to be evaled but not shown.
melunko@47
 19490
finish_eval=$lt_finish_eval
melunko@47
 19491
melunko@47
 19492
# Take the output of nm and produce a listing of raw symbols and C names.
melunko@47
 19493
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
melunko@47
 19494
melunko@47
 19495
# Transform the output of nm in a proper C declaration
melunko@47
 19496
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
melunko@47
 19497
melunko@47
 19498
# Transform the output of nm in a C name address pair
melunko@47
 19499
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
melunko@47
 19500
melunko@47
 19501
# This is the shared library runtime path variable.
melunko@47
 19502
runpath_var=$runpath_var
melunko@47
 19503
melunko@47
 19504
# This is the shared library path variable.
melunko@47
 19505
shlibpath_var=$shlibpath_var
melunko@47
 19506
melunko@47
 19507
# Is shlibpath searched before the hard-coded library search path?
melunko@47
 19508
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
melunko@47
 19509
melunko@47
 19510
# How to hardcode a shared library path into an executable.
melunko@47
 19511
hardcode_action=$hardcode_action_RC
melunko@47
 19512
melunko@47
 19513
# Whether we should hardcode library paths into libraries.
melunko@47
 19514
hardcode_into_libs=$hardcode_into_libs
melunko@47
 19515
melunko@47
 19516
# Flag to hardcode \$libdir into a binary during linking.
melunko@47
 19517
# This must work even if \$libdir does not exist.
melunko@47
 19518
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
melunko@47
 19519
melunko@47
 19520
# If ld is used when linking, flag to hardcode \$libdir into
melunko@47
 19521
# a binary during linking. This must work even if \$libdir does
melunko@47
 19522
# not exist.
melunko@47
 19523
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
melunko@47
 19524
melunko@47
 19525
# Whether we need a single -rpath flag with a separated argument.
melunko@47
 19526
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
melunko@47
 19527
melunko@47
 19528
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
melunko@47
 19529
# resulting binary.
melunko@47
 19530
hardcode_direct=$hardcode_direct_RC
melunko@47
 19531
melunko@47
 19532
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
melunko@47
 19533
# resulting binary.
melunko@47
 19534
hardcode_minus_L=$hardcode_minus_L_RC
melunko@47
 19535
melunko@47
 19536
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
melunko@47
 19537
# the resulting binary.
melunko@47
 19538
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
melunko@47
 19539
melunko@47
 19540
# Set to yes if building a shared library automatically hardcodes DIR into the library
melunko@47
 19541
# and all subsequent libraries and executables linked against it.
melunko@47
 19542
hardcode_automatic=$hardcode_automatic_RC
melunko@47
 19543
melunko@47
 19544
# Variables whose values should be saved in libtool wrapper scripts and
melunko@47
 19545
# restored at relink time.
melunko@47
 19546
variables_saved_for_relink="$variables_saved_for_relink"
melunko@47
 19547
melunko@47
 19548
# Whether libtool must link a program against all its dependency libraries.
melunko@47
 19549
link_all_deplibs=$link_all_deplibs_RC
melunko@47
 19550
melunko@47
 19551
# Compile-time system search path for libraries
melunko@47
 19552
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
melunko@47
 19553
melunko@47
 19554
# Run-time system search path for libraries
melunko@47
 19555
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
melunko@47
 19556
melunko@47
 19557
# Fix the shell variable \$srcfile for the compiler.
melunko@47
 19558
fix_srcfile_path="$fix_srcfile_path_RC"
melunko@47
 19559
melunko@47
 19560
# Set to yes if exported symbols are required.
melunko@47
 19561
always_export_symbols=$always_export_symbols_RC
melunko@47
 19562
melunko@47
 19563
# The commands to list exported symbols.
melunko@47
 19564
export_symbols_cmds=$lt_export_symbols_cmds_RC
melunko@47
 19565
melunko@47
 19566
# The commands to extract the exported symbol list from a shared archive.
melunko@47
 19567
extract_expsyms_cmds=$lt_extract_expsyms_cmds
melunko@47
 19568
melunko@47
 19569
# Symbols that should not be listed in the preloaded symbols.
melunko@47
 19570
exclude_expsyms=$lt_exclude_expsyms_RC
melunko@47
 19571
melunko@47
 19572
# Symbols that must always be exported.
melunko@47
 19573
include_expsyms=$lt_include_expsyms_RC
melunko@47
 19574
melunko@47
 19575
# ### END LIBTOOL TAG CONFIG: $tagname
melunko@47
 19576
melunko@47
 19577
__EOF__
melunko@47
 19578
melunko@47
 19579
melunko@47
 19580
else
melunko@47
 19581
  # If there is no Makefile yet, we rely on a make rule to execute
melunko@47
 19582
  # `config.status --recheck' to rerun these tests and create the
melunko@47
 19583
  # libtool script then.
melunko@47
 19584
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
melunko@47
 19585
  if test -f "$ltmain_in"; then
melunko@47
 19586
    test -f Makefile && make "$ltmain"
melunko@47
 19587
  fi
melunko@47
 19588
fi
melunko@47
 19589
melunko@47
 19590
melunko@47
 19591
ac_ext=c
melunko@47
 19592
ac_cpp='$CPP $CPPFLAGS'
melunko@47
 19593
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
 19594
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
 19595
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
 19596
melunko@47
 19597
CC="$lt_save_CC"
melunko@47
 19598
melunko@47
 19599
	;;
melunko@47
 19600
melunko@47
 19601
      *)
melunko@47
 19602
	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
melunko@47
 19603
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
melunko@47
 19604
   { (exit 1); exit 1; }; }
melunko@47
 19605
	;;
melunko@47
 19606
      esac
melunko@47
 19607
melunko@47
 19608
      # Append the new tag name to the list of available tags.
melunko@47
 19609
      if test -n "$tagname" ; then
melunko@47
 19610
      available_tags="$available_tags $tagname"
melunko@47
 19611
    fi
melunko@47
 19612
    fi
melunko@47
 19613
  done
melunko@47
 19614
  IFS="$lt_save_ifs"
melunko@47
 19615
melunko@47
 19616
  # Now substitute the updated list of available tags.
melunko@47
 19617
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
melunko@47
 19618
    mv "${ofile}T" "$ofile"
melunko@47
 19619
    chmod +x "$ofile"
melunko@47
 19620
  else
melunko@47
 19621
    rm -f "${ofile}T"
melunko@47
 19622
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
melunko@47
 19623
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
melunko@47
 19624
   { (exit 1); exit 1; }; }
melunko@47
 19625
  fi
melunko@47
 19626
fi
melunko@47
 19627
melunko@47
 19628
melunko@47
 19629
melunko@47
 19630
# This can be used to rebuild libtool when needed
melunko@47
 19631
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
melunko@47
 19632
melunko@47
 19633
# Always use our own libtool.
melunko@47
 19634
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
melunko@47
 19635
melunko@47
 19636
# Prevent multiple expansion
melunko@47
 19637
melunko@47
 19638
melunko@47
 19639
melunko@47
 19640
melunko@47
 19641
melunko@47
 19642
melunko@47
 19643
melunko@47
 19644
melunko@47
 19645
melunko@47
 19646
melunko@47
 19647
melunko@47
 19648
  
melunko@47
 19649
melunko@47
 19650
  
melunko@47
 19651
melunko@47
 19652
melunko@47
 19653
  
melunko@47
 19654
       
melunko@47
 19655
       
melunko@47
 19656
melunko@47
 19657
melunko@47
 19658
          ac_config_headers="$ac_config_headers config.h"
melunko@47
 19659
melunko@47
 19660
melunko@47
 19661
ACLOCAL_AMFLAGS="-I m4"
melunko@47
 19662
melunko@47
 19663
melunko@47
 19664
ac_ext=c
melunko@47
 19665
ac_cpp='$CPP $CPPFLAGS'
melunko@47
 19666
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
 19667
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
 19668
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
 19669
if test -n "$ac_tool_prefix"; then
melunko@47
 19670
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
melunko@47
 19671
set dummy ${ac_tool_prefix}gcc; ac_word=$2
melunko@47
 19672
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
 19673
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
 19674
if test "${ac_cv_prog_CC+set}" = set; then
melunko@47
 19675
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 19676
else
melunko@47
 19677
  if test -n "$CC"; then
melunko@47
 19678
  ac_cv_prog_CC="$CC" # Let the user override the test.
melunko@47
 19679
else
melunko@47
 19680
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 19681
for as_dir in $PATH
melunko@47
 19682
do
melunko@47
 19683
  IFS=$as_save_IFS
melunko@47
 19684
  test -z "$as_dir" && as_dir=.
melunko@47
 19685
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
 19686
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
 19687
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
melunko@47
 19688
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
 19689
    break 2
melunko@47
 19690
  fi
melunko@47
 19691
done
melunko@47
 19692
done
melunko@47
 19693
melunko@47
 19694
fi
melunko@47
 19695
fi
melunko@47
 19696
CC=$ac_cv_prog_CC
melunko@47
 19697
if test -n "$CC"; then
melunko@47
 19698
  echo "$as_me:$LINENO: result: $CC" >&5
melunko@47
 19699
echo "${ECHO_T}$CC" >&6
melunko@47
 19700
else
melunko@47
 19701
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 19702
echo "${ECHO_T}no" >&6
melunko@47
 19703
fi
melunko@47
 19704
melunko@47
 19705
fi
melunko@47
 19706
if test -z "$ac_cv_prog_CC"; then
melunko@47
 19707
  ac_ct_CC=$CC
melunko@47
 19708
  # Extract the first word of "gcc", so it can be a program name with args.
melunko@47
 19709
set dummy gcc; ac_word=$2
melunko@47
 19710
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
 19711
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
 19712
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
melunko@47
 19713
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 19714
else
melunko@47
 19715
  if test -n "$ac_ct_CC"; then
melunko@47
 19716
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
melunko@47
 19717
else
melunko@47
 19718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 19719
for as_dir in $PATH
melunko@47
 19720
do
melunko@47
 19721
  IFS=$as_save_IFS
melunko@47
 19722
  test -z "$as_dir" && as_dir=.
melunko@47
 19723
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
 19724
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
 19725
    ac_cv_prog_ac_ct_CC="gcc"
melunko@47
 19726
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
 19727
    break 2
melunko@47
 19728
  fi
melunko@47
 19729
done
melunko@47
 19730
done
melunko@47
 19731
melunko@47
 19732
fi
melunko@47
 19733
fi
melunko@47
 19734
ac_ct_CC=$ac_cv_prog_ac_ct_CC
melunko@47
 19735
if test -n "$ac_ct_CC"; then
melunko@47
 19736
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
melunko@47
 19737
echo "${ECHO_T}$ac_ct_CC" >&6
melunko@47
 19738
else
melunko@47
 19739
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 19740
echo "${ECHO_T}no" >&6
melunko@47
 19741
fi
melunko@47
 19742
melunko@47
 19743
  CC=$ac_ct_CC
melunko@47
 19744
else
melunko@47
 19745
  CC="$ac_cv_prog_CC"
melunko@47
 19746
fi
melunko@47
 19747
melunko@47
 19748
if test -z "$CC"; then
melunko@47
 19749
  if test -n "$ac_tool_prefix"; then
melunko@47
 19750
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
melunko@47
 19751
set dummy ${ac_tool_prefix}cc; ac_word=$2
melunko@47
 19752
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
 19753
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
 19754
if test "${ac_cv_prog_CC+set}" = set; then
melunko@47
 19755
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 19756
else
melunko@47
 19757
  if test -n "$CC"; then
melunko@47
 19758
  ac_cv_prog_CC="$CC" # Let the user override the test.
melunko@47
 19759
else
melunko@47
 19760
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 19761
for as_dir in $PATH
melunko@47
 19762
do
melunko@47
 19763
  IFS=$as_save_IFS
melunko@47
 19764
  test -z "$as_dir" && as_dir=.
melunko@47
 19765
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
 19766
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
 19767
    ac_cv_prog_CC="${ac_tool_prefix}cc"
melunko@47
 19768
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
 19769
    break 2
melunko@47
 19770
  fi
melunko@47
 19771
done
melunko@47
 19772
done
melunko@47
 19773
melunko@47
 19774
fi
melunko@47
 19775
fi
melunko@47
 19776
CC=$ac_cv_prog_CC
melunko@47
 19777
if test -n "$CC"; then
melunko@47
 19778
  echo "$as_me:$LINENO: result: $CC" >&5
melunko@47
 19779
echo "${ECHO_T}$CC" >&6
melunko@47
 19780
else
melunko@47
 19781
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 19782
echo "${ECHO_T}no" >&6
melunko@47
 19783
fi
melunko@47
 19784
melunko@47
 19785
fi
melunko@47
 19786
if test -z "$ac_cv_prog_CC"; then
melunko@47
 19787
  ac_ct_CC=$CC
melunko@47
 19788
  # Extract the first word of "cc", so it can be a program name with args.
melunko@47
 19789
set dummy cc; ac_word=$2
melunko@47
 19790
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
 19791
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
 19792
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
melunko@47
 19793
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 19794
else
melunko@47
 19795
  if test -n "$ac_ct_CC"; then
melunko@47
 19796
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
melunko@47
 19797
else
melunko@47
 19798
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 19799
for as_dir in $PATH
melunko@47
 19800
do
melunko@47
 19801
  IFS=$as_save_IFS
melunko@47
 19802
  test -z "$as_dir" && as_dir=.
melunko@47
 19803
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
 19804
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
 19805
    ac_cv_prog_ac_ct_CC="cc"
melunko@47
 19806
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
 19807
    break 2
melunko@47
 19808
  fi
melunko@47
 19809
done
melunko@47
 19810
done
melunko@47
 19811
melunko@47
 19812
fi
melunko@47
 19813
fi
melunko@47
 19814
ac_ct_CC=$ac_cv_prog_ac_ct_CC
melunko@47
 19815
if test -n "$ac_ct_CC"; then
melunko@47
 19816
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
melunko@47
 19817
echo "${ECHO_T}$ac_ct_CC" >&6
melunko@47
 19818
else
melunko@47
 19819
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 19820
echo "${ECHO_T}no" >&6
melunko@47
 19821
fi
melunko@47
 19822
melunko@47
 19823
  CC=$ac_ct_CC
melunko@47
 19824
else
melunko@47
 19825
  CC="$ac_cv_prog_CC"
melunko@47
 19826
fi
melunko@47
 19827
melunko@47
 19828
fi
melunko@47
 19829
if test -z "$CC"; then
melunko@47
 19830
  # Extract the first word of "cc", so it can be a program name with args.
melunko@47
 19831
set dummy cc; ac_word=$2
melunko@47
 19832
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
 19833
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
 19834
if test "${ac_cv_prog_CC+set}" = set; then
melunko@47
 19835
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 19836
else
melunko@47
 19837
  if test -n "$CC"; then
melunko@47
 19838
  ac_cv_prog_CC="$CC" # Let the user override the test.
melunko@47
 19839
else
melunko@47
 19840
  ac_prog_rejected=no
melunko@47
 19841
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 19842
for as_dir in $PATH
melunko@47
 19843
do
melunko@47
 19844
  IFS=$as_save_IFS
melunko@47
 19845
  test -z "$as_dir" && as_dir=.
melunko@47
 19846
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
 19847
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
 19848
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
melunko@47
 19849
       ac_prog_rejected=yes
melunko@47
 19850
       continue
melunko@47
 19851
     fi
melunko@47
 19852
    ac_cv_prog_CC="cc"
melunko@47
 19853
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
 19854
    break 2
melunko@47
 19855
  fi
melunko@47
 19856
done
melunko@47
 19857
done
melunko@47
 19858
melunko@47
 19859
if test $ac_prog_rejected = yes; then
melunko@47
 19860
  # We found a bogon in the path, so make sure we never use it.
melunko@47
 19861
  set dummy $ac_cv_prog_CC
melunko@47
 19862
  shift
melunko@47
 19863
  if test $@%:@ != 0; then
melunko@47
 19864
    # We chose a different compiler from the bogus one.
melunko@47
 19865
    # However, it has the same basename, so the bogon will be chosen
melunko@47
 19866
    # first if we set CC to just the basename; use the full file name.
melunko@47
 19867
    shift
melunko@47
 19868
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
melunko@47
 19869
  fi
melunko@47
 19870
fi
melunko@47
 19871
fi
melunko@47
 19872
fi
melunko@47
 19873
CC=$ac_cv_prog_CC
melunko@47
 19874
if test -n "$CC"; then
melunko@47
 19875
  echo "$as_me:$LINENO: result: $CC" >&5
melunko@47
 19876
echo "${ECHO_T}$CC" >&6
melunko@47
 19877
else
melunko@47
 19878
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 19879
echo "${ECHO_T}no" >&6
melunko@47
 19880
fi
melunko@47
 19881
melunko@47
 19882
fi
melunko@47
 19883
if test -z "$CC"; then
melunko@47
 19884
  if test -n "$ac_tool_prefix"; then
melunko@47
 19885
  for ac_prog in cl
melunko@47
 19886
  do
melunko@47
 19887
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
melunko@47
 19888
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
melunko@47
 19889
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
 19890
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
 19891
if test "${ac_cv_prog_CC+set}" = set; then
melunko@47
 19892
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 19893
else
melunko@47
 19894
  if test -n "$CC"; then
melunko@47
 19895
  ac_cv_prog_CC="$CC" # Let the user override the test.
melunko@47
 19896
else
melunko@47
 19897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 19898
for as_dir in $PATH
melunko@47
 19899
do
melunko@47
 19900
  IFS=$as_save_IFS
melunko@47
 19901
  test -z "$as_dir" && as_dir=.
melunko@47
 19902
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
 19903
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
 19904
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
melunko@47
 19905
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
 19906
    break 2
melunko@47
 19907
  fi
melunko@47
 19908
done
melunko@47
 19909
done
melunko@47
 19910
melunko@47
 19911
fi
melunko@47
 19912
fi
melunko@47
 19913
CC=$ac_cv_prog_CC
melunko@47
 19914
if test -n "$CC"; then
melunko@47
 19915
  echo "$as_me:$LINENO: result: $CC" >&5
melunko@47
 19916
echo "${ECHO_T}$CC" >&6
melunko@47
 19917
else
melunko@47
 19918
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 19919
echo "${ECHO_T}no" >&6
melunko@47
 19920
fi
melunko@47
 19921
melunko@47
 19922
    test -n "$CC" && break
melunko@47
 19923
  done
melunko@47
 19924
fi
melunko@47
 19925
if test -z "$CC"; then
melunko@47
 19926
  ac_ct_CC=$CC
melunko@47
 19927
  for ac_prog in cl
melunko@47
 19928
do
melunko@47
 19929
  # Extract the first word of "$ac_prog", so it can be a program name with args.
melunko@47
 19930
set dummy $ac_prog; ac_word=$2
melunko@47
 19931
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
 19932
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
 19933
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
melunko@47
 19934
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 19935
else
melunko@47
 19936
  if test -n "$ac_ct_CC"; then
melunko@47
 19937
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
melunko@47
 19938
else
melunko@47
 19939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 19940
for as_dir in $PATH
melunko@47
 19941
do
melunko@47
 19942
  IFS=$as_save_IFS
melunko@47
 19943
  test -z "$as_dir" && as_dir=.
melunko@47
 19944
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
 19945
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
 19946
    ac_cv_prog_ac_ct_CC="$ac_prog"
melunko@47
 19947
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
 19948
    break 2
melunko@47
 19949
  fi
melunko@47
 19950
done
melunko@47
 19951
done
melunko@47
 19952
melunko@47
 19953
fi
melunko@47
 19954
fi
melunko@47
 19955
ac_ct_CC=$ac_cv_prog_ac_ct_CC
melunko@47
 19956
if test -n "$ac_ct_CC"; then
melunko@47
 19957
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
melunko@47
 19958
echo "${ECHO_T}$ac_ct_CC" >&6
melunko@47
 19959
else
melunko@47
 19960
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 19961
echo "${ECHO_T}no" >&6
melunko@47
 19962
fi
melunko@47
 19963
melunko@47
 19964
  test -n "$ac_ct_CC" && break
melunko@47
 19965
done
melunko@47
 19966
melunko@47
 19967
  CC=$ac_ct_CC
melunko@47
 19968
fi
melunko@47
 19969
melunko@47
 19970
fi
melunko@47
 19971
melunko@47
 19972
melunko@47
 19973
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
melunko@47
 19974
See \`config.log' for more details." >&5
melunko@47
 19975
echo "$as_me: error: no acceptable C compiler found in \$PATH
melunko@47
 19976
See \`config.log' for more details." >&2;}
melunko@47
 19977
   { (exit 1); exit 1; }; }
melunko@47
 19978
melunko@47
 19979
# Provide some information about the compiler.
melunko@47
 19980
echo "$as_me:$LINENO:" \
melunko@47
 19981
     "checking for C compiler version" >&5
melunko@47
 19982
ac_compiler=`set X $ac_compile; echo $2`
melunko@47
 19983
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
melunko@47
 19984
  (eval $ac_compiler --version </dev/null >&5) 2>&5
melunko@47
 19985
  ac_status=$?
melunko@47
 19986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 19987
  (exit $ac_status); }
melunko@47
 19988
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
melunko@47
 19989
  (eval $ac_compiler -v </dev/null >&5) 2>&5
melunko@47
 19990
  ac_status=$?
melunko@47
 19991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 19992
  (exit $ac_status); }
melunko@47
 19993
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
melunko@47
 19994
  (eval $ac_compiler -V </dev/null >&5) 2>&5
melunko@47
 19995
  ac_status=$?
melunko@47
 19996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 19997
  (exit $ac_status); }
melunko@47
 19998
melunko@47
 19999
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
melunko@47
 20000
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
melunko@47
 20001
if test "${ac_cv_c_compiler_gnu+set}" = set; then
melunko@47
 20002
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 20003
else
melunko@47
 20004
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 20005
/* confdefs.h.  */
melunko@47
 20006
_ACEOF
melunko@47
 20007
cat confdefs.h >>conftest.$ac_ext
melunko@47
 20008
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 20009
/* end confdefs.h.  */
melunko@47
 20010
melunko@47
 20011
int
melunko@47
 20012
main ()
melunko@47
 20013
{
melunko@47
 20014
#ifndef __GNUC__
melunko@47
 20015
       choke me
melunko@47
 20016
#endif
melunko@47
 20017
melunko@47
 20018
  ;
melunko@47
 20019
  return 0;
melunko@47
 20020
}
melunko@47
 20021
_ACEOF
melunko@47
 20022
rm -f conftest.$ac_objext
melunko@47
 20023
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 20024
  (eval $ac_compile) 2>conftest.er1
melunko@47
 20025
  ac_status=$?
melunko@47
 20026
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 20027
  rm -f conftest.er1
melunko@47
 20028
  cat conftest.err >&5
melunko@47
 20029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20030
  (exit $ac_status); } &&
melunko@47
 20031
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 20032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20033
  (eval $ac_try) 2>&5
melunko@47
 20034
  ac_status=$?
melunko@47
 20035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20036
  (exit $ac_status); }; } &&
melunko@47
 20037
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
 20038
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20039
  (eval $ac_try) 2>&5
melunko@47
 20040
  ac_status=$?
melunko@47
 20041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20042
  (exit $ac_status); }; }; then
melunko@47
 20043
  ac_compiler_gnu=yes
melunko@47
 20044
else
melunko@47
 20045
  echo "$as_me: failed program was:" >&5
melunko@47
 20046
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 20047
melunko@47
 20048
ac_compiler_gnu=no
melunko@47
 20049
fi
melunko@47
 20050
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
 20051
ac_cv_c_compiler_gnu=$ac_compiler_gnu
melunko@47
 20052
melunko@47
 20053
fi
melunko@47
 20054
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
melunko@47
 20055
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
melunko@47
 20056
GCC=`test $ac_compiler_gnu = yes && echo yes`
melunko@47
 20057
ac_test_CFLAGS=${CFLAGS+set}
melunko@47
 20058
ac_save_CFLAGS=$CFLAGS
melunko@47
 20059
CFLAGS="-g"
melunko@47
 20060
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
melunko@47
 20061
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
melunko@47
 20062
if test "${ac_cv_prog_cc_g+set}" = set; then
melunko@47
 20063
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 20064
else
melunko@47
 20065
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 20066
/* confdefs.h.  */
melunko@47
 20067
_ACEOF
melunko@47
 20068
cat confdefs.h >>conftest.$ac_ext
melunko@47
 20069
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 20070
/* end confdefs.h.  */
melunko@47
 20071
melunko@47
 20072
int
melunko@47
 20073
main ()
melunko@47
 20074
{
melunko@47
 20075
melunko@47
 20076
  ;
melunko@47
 20077
  return 0;
melunko@47
 20078
}
melunko@47
 20079
_ACEOF
melunko@47
 20080
rm -f conftest.$ac_objext
melunko@47
 20081
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 20082
  (eval $ac_compile) 2>conftest.er1
melunko@47
 20083
  ac_status=$?
melunko@47
 20084
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 20085
  rm -f conftest.er1
melunko@47
 20086
  cat conftest.err >&5
melunko@47
 20087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20088
  (exit $ac_status); } &&
melunko@47
 20089
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 20090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20091
  (eval $ac_try) 2>&5
melunko@47
 20092
  ac_status=$?
melunko@47
 20093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20094
  (exit $ac_status); }; } &&
melunko@47
 20095
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
 20096
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20097
  (eval $ac_try) 2>&5
melunko@47
 20098
  ac_status=$?
melunko@47
 20099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20100
  (exit $ac_status); }; }; then
melunko@47
 20101
  ac_cv_prog_cc_g=yes
melunko@47
 20102
else
melunko@47
 20103
  echo "$as_me: failed program was:" >&5
melunko@47
 20104
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 20105
melunko@47
 20106
ac_cv_prog_cc_g=no
melunko@47
 20107
fi
melunko@47
 20108
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
 20109
fi
melunko@47
 20110
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
melunko@47
 20111
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
melunko@47
 20112
if test "$ac_test_CFLAGS" = set; then
melunko@47
 20113
  CFLAGS=$ac_save_CFLAGS
melunko@47
 20114
elif test $ac_cv_prog_cc_g = yes; then
melunko@47
 20115
  if test "$GCC" = yes; then
melunko@47
 20116
    CFLAGS="-g -O2"
melunko@47
 20117
  else
melunko@47
 20118
    CFLAGS="-g"
melunko@47
 20119
  fi
melunko@47
 20120
else
melunko@47
 20121
  if test "$GCC" = yes; then
melunko@47
 20122
    CFLAGS="-O2"
melunko@47
 20123
  else
melunko@47
 20124
    CFLAGS=
melunko@47
 20125
  fi
melunko@47
 20126
fi
melunko@47
 20127
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
melunko@47
 20128
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
melunko@47
 20129
if test "${ac_cv_prog_cc_stdc+set}" = set; then
melunko@47
 20130
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 20131
else
melunko@47
 20132
  ac_cv_prog_cc_stdc=no
melunko@47
 20133
ac_save_CC=$CC
melunko@47
 20134
cat >conftest.$ac_ext <<_ACEOF
melunko@47
 20135
/* confdefs.h.  */
melunko@47
 20136
_ACEOF
melunko@47
 20137
cat confdefs.h >>conftest.$ac_ext
melunko@47
 20138
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 20139
/* end confdefs.h.  */
melunko@47
 20140
#include <stdarg.h>
melunko@47
 20141
#include <stdio.h>
melunko@47
 20142
#include <sys/types.h>
melunko@47
 20143
#include <sys/stat.h>
melunko@47
 20144
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
melunko@47
 20145
struct buf { int x; };
melunko@47
 20146
FILE * (*rcsopen) (struct buf *, struct stat *, int);
melunko@47
 20147
static char *e (p, i)
melunko@47
 20148
     char **p;
melunko@47
 20149
     int i;
melunko@47
 20150
{
melunko@47
 20151
  return p[i];
melunko@47
 20152
}
melunko@47
 20153
static char *f (char * (*g) (char **, int), char **p, ...)
melunko@47
 20154
{
melunko@47
 20155
  char *s;
melunko@47
 20156
  va_list v;
melunko@47
 20157
  va_start (v,p);
melunko@47
 20158
  s = g (p, va_arg (v,int));
melunko@47
 20159
  va_end (v);
melunko@47
 20160
  return s;
melunko@47
 20161
}
melunko@47
 20162
melunko@47
 20163
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
melunko@47
 20164
   function prototypes and stuff, but not '\xHH' hex character constants.
melunko@47
 20165
   These don't provoke an error unfortunately, instead are silently treated
melunko@47
 20166
   as 'x'.  The following induces an error, until -std1 is added to get
melunko@47
 20167
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
melunko@47
 20168
   array size at least.  It's necessary to write '\x00'==0 to get something
melunko@47
 20169
   that's true only with -std1.  */
melunko@47
 20170
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
melunko@47
 20171
melunko@47
 20172
int test (int i, double x);
melunko@47
 20173
struct s1 {int (*f) (int a);};
melunko@47
 20174
struct s2 {int (*f) (double a);};
melunko@47
 20175
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
melunko@47
 20176
int argc;
melunko@47
 20177
char **argv;
melunko@47
 20178
int
melunko@47
 20179
main ()
melunko@47
 20180
{
melunko@47
 20181
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
melunko@47
 20182
  ;
melunko@47
 20183
  return 0;
melunko@47
 20184
}
melunko@47
 20185
_ACEOF
melunko@47
 20186
# Don't try gcc -ansi; that turns off useful extensions and
melunko@47
 20187
# breaks some systems' header files.
melunko@47
 20188
# AIX			-qlanglvl=ansi
melunko@47
 20189
# Ultrix and OSF/1	-std1
melunko@47
 20190
# HP-UX 10.20 and later	-Ae
melunko@47
 20191
# HP-UX older versions	-Aa -D_HPUX_SOURCE
melunko@47
 20192
# SVR4			-Xc -D__EXTENSIONS__
melunko@47
 20193
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
melunko@47
 20194
do
melunko@47
 20195
  CC="$ac_save_CC $ac_arg"
melunko@47
 20196
  rm -f conftest.$ac_objext
melunko@47
 20197
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 20198
  (eval $ac_compile) 2>conftest.er1
melunko@47
 20199
  ac_status=$?
melunko@47
 20200
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 20201
  rm -f conftest.er1
melunko@47
 20202
  cat conftest.err >&5
melunko@47
 20203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20204
  (exit $ac_status); } &&
melunko@47
 20205
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 20206
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20207
  (eval $ac_try) 2>&5
melunko@47
 20208
  ac_status=$?
melunko@47
 20209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20210
  (exit $ac_status); }; } &&
melunko@47
 20211
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
 20212
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20213
  (eval $ac_try) 2>&5
melunko@47
 20214
  ac_status=$?
melunko@47
 20215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20216
  (exit $ac_status); }; }; then
melunko@47
 20217
  ac_cv_prog_cc_stdc=$ac_arg
melunko@47
 20218
break
melunko@47
 20219
else
melunko@47
 20220
  echo "$as_me: failed program was:" >&5
melunko@47
 20221
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 20222
melunko@47
 20223
fi
melunko@47
 20224
rm -f conftest.err conftest.$ac_objext 
melunko@47
 20225
done
melunko@47
 20226
rm -f conftest.$ac_ext conftest.$ac_objext
melunko@47
 20227
CC=$ac_save_CC
melunko@47
 20228
melunko@47
 20229
fi
melunko@47
 20230
melunko@47
 20231
case "x$ac_cv_prog_cc_stdc" in
melunko@47
 20232
  x|xno)
melunko@47
 20233
    echo "$as_me:$LINENO: result: none needed" >&5
melunko@47
 20234
echo "${ECHO_T}none needed" >&6 ;;
melunko@47
 20235
  *)
melunko@47
 20236
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
melunko@47
 20237
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
melunko@47
 20238
    CC="$CC $ac_cv_prog_cc_stdc" ;;
melunko@47
 20239
esac
melunko@47
 20240
melunko@47
 20241
# Some people use a C++ compiler to compile C.  Since we use `exit',
melunko@47
 20242
# in C++ we need to declare it.  In case someone uses the same compiler
melunko@47
 20243
# for both compiling C and C++ we need to have the C++ compiler decide
melunko@47
 20244
# the declaration of exit, since it's the most demanding environment.
melunko@47
 20245
cat >conftest.$ac_ext <<_ACEOF
melunko@47
 20246
@%:@ifndef __cplusplus
melunko@47
 20247
  choke me
melunko@47
 20248
@%:@endif
melunko@47
 20249
_ACEOF
melunko@47
 20250
rm -f conftest.$ac_objext
melunko@47
 20251
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 20252
  (eval $ac_compile) 2>conftest.er1
melunko@47
 20253
  ac_status=$?
melunko@47
 20254
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 20255
  rm -f conftest.er1
melunko@47
 20256
  cat conftest.err >&5
melunko@47
 20257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20258
  (exit $ac_status); } &&
melunko@47
 20259
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 20260
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20261
  (eval $ac_try) 2>&5
melunko@47
 20262
  ac_status=$?
melunko@47
 20263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20264
  (exit $ac_status); }; } &&
melunko@47
 20265
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
 20266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20267
  (eval $ac_try) 2>&5
melunko@47
 20268
  ac_status=$?
melunko@47
 20269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20270
  (exit $ac_status); }; }; then
melunko@47
 20271
  for ac_declaration in \
melunko@47
 20272
   '' \
melunko@47
 20273
   'extern "C" void std::exit (int) throw (); using std::exit;' \
melunko@47
 20274
   'extern "C" void std::exit (int); using std::exit;' \
melunko@47
 20275
   'extern "C" void exit (int) throw ();' \
melunko@47
 20276
   'extern "C" void exit (int);' \
melunko@47
 20277
   'void exit (int);'
melunko@47
 20278
do
melunko@47
 20279
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 20280
/* confdefs.h.  */
melunko@47
 20281
_ACEOF
melunko@47
 20282
cat confdefs.h >>conftest.$ac_ext
melunko@47
 20283
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 20284
/* end confdefs.h.  */
melunko@47
 20285
$ac_declaration
melunko@47
 20286
@%:@include <stdlib.h>
melunko@47
 20287
int
melunko@47
 20288
main ()
melunko@47
 20289
{
melunko@47
 20290
exit (42);
melunko@47
 20291
  ;
melunko@47
 20292
  return 0;
melunko@47
 20293
}
melunko@47
 20294
_ACEOF
melunko@47
 20295
rm -f conftest.$ac_objext
melunko@47
 20296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 20297
  (eval $ac_compile) 2>conftest.er1
melunko@47
 20298
  ac_status=$?
melunko@47
 20299
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 20300
  rm -f conftest.er1
melunko@47
 20301
  cat conftest.err >&5
melunko@47
 20302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20303
  (exit $ac_status); } &&
melunko@47
 20304
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 20305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20306
  (eval $ac_try) 2>&5
melunko@47
 20307
  ac_status=$?
melunko@47
 20308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20309
  (exit $ac_status); }; } &&
melunko@47
 20310
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
 20311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20312
  (eval $ac_try) 2>&5
melunko@47
 20313
  ac_status=$?
melunko@47
 20314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20315
  (exit $ac_status); }; }; then
melunko@47
 20316
  :
melunko@47
 20317
else
melunko@47
 20318
  echo "$as_me: failed program was:" >&5
melunko@47
 20319
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 20320
melunko@47
 20321
continue
melunko@47
 20322
fi
melunko@47
 20323
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
 20324
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 20325
/* confdefs.h.  */
melunko@47
 20326
_ACEOF
melunko@47
 20327
cat confdefs.h >>conftest.$ac_ext
melunko@47
 20328
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 20329
/* end confdefs.h.  */
melunko@47
 20330
$ac_declaration
melunko@47
 20331
int
melunko@47
 20332
main ()
melunko@47
 20333
{
melunko@47
 20334
exit (42);
melunko@47
 20335
  ;
melunko@47
 20336
  return 0;
melunko@47
 20337
}
melunko@47
 20338
_ACEOF
melunko@47
 20339
rm -f conftest.$ac_objext
melunko@47
 20340
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 20341
  (eval $ac_compile) 2>conftest.er1
melunko@47
 20342
  ac_status=$?
melunko@47
 20343
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 20344
  rm -f conftest.er1
melunko@47
 20345
  cat conftest.err >&5
melunko@47
 20346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20347
  (exit $ac_status); } &&
melunko@47
 20348
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 20349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20350
  (eval $ac_try) 2>&5
melunko@47
 20351
  ac_status=$?
melunko@47
 20352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20353
  (exit $ac_status); }; } &&
melunko@47
 20354
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
 20355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20356
  (eval $ac_try) 2>&5
melunko@47
 20357
  ac_status=$?
melunko@47
 20358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20359
  (exit $ac_status); }; }; then
melunko@47
 20360
  break
melunko@47
 20361
else
melunko@47
 20362
  echo "$as_me: failed program was:" >&5
melunko@47
 20363
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 20364
melunko@47
 20365
fi
melunko@47
 20366
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
 20367
done
melunko@47
 20368
rm -f conftest*
melunko@47
 20369
if test -n "$ac_declaration"; then
melunko@47
 20370
  echo '#ifdef __cplusplus' >>confdefs.h
melunko@47
 20371
  echo $ac_declaration      >>confdefs.h
melunko@47
 20372
  echo '#endif'             >>confdefs.h
melunko@47
 20373
fi
melunko@47
 20374
melunko@47
 20375
else
melunko@47
 20376
  echo "$as_me: failed program was:" >&5
melunko@47
 20377
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 20378
melunko@47
 20379
fi
melunko@47
 20380
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
 20381
ac_ext=c
melunko@47
 20382
ac_cpp='$CPP $CPPFLAGS'
melunko@47
 20383
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
 20384
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
 20385
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
 20386
melunko@47
 20387
depcc="$CC"   am_compiler_list=
melunko@47
 20388
melunko@47
 20389
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
melunko@47
 20390
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
melunko@47
 20391
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
melunko@47
 20392
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 20393
else
melunko@47
 20394
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
melunko@47
 20395
  # We make a subdir and do the tests there.  Otherwise we can end up
melunko@47
 20396
  # making bogus files that we don't know about and never remove.  For
melunko@47
 20397
  # instance it was reported that on HP-UX the gcc test will end up
melunko@47
 20398
  # making a dummy file named `D' -- because `-MD' means `put the output
melunko@47
 20399
  # in D'.
melunko@47
 20400
  mkdir conftest.dir
melunko@47
 20401
  # Copy depcomp to subdir because otherwise we won't find it if we're
melunko@47
 20402
  # using a relative directory.
melunko@47
 20403
  cp "$am_depcomp" conftest.dir
melunko@47
 20404
  cd conftest.dir
melunko@47
 20405
  # We will build objects and dependencies in a subdirectory because
melunko@47
 20406
  # it helps to detect inapplicable dependency modes.  For instance
melunko@47
 20407
  # both Tru64's cc and ICC support -MD to output dependencies as a
melunko@47
 20408
  # side effect of compilation, but ICC will put the dependencies in
melunko@47
 20409
  # the current directory while Tru64 will put them in the object
melunko@47
 20410
  # directory.
melunko@47
 20411
  mkdir sub
melunko@47
 20412
melunko@47
 20413
  am_cv_CC_dependencies_compiler_type=none
melunko@47
 20414
  if test "$am_compiler_list" = ""; then
melunko@47
 20415
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
melunko@47
 20416
  fi
melunko@47
 20417
  for depmode in $am_compiler_list; do
melunko@47
 20418
    # Setup a source with many dependencies, because some compilers
melunko@47
 20419
    # like to wrap large dependency lists on column 80 (with \), and
melunko@47
 20420
    # we should not choose a depcomp mode which is confused by this.
melunko@47
 20421
    #
melunko@47
 20422
    # We need to recreate these files for each test, as the compiler may
melunko@47
 20423
    # overwrite some of them when testing with obscure command lines.
melunko@47
 20424
    # This happens at least with the AIX C compiler.
melunko@47
 20425
    : > sub/conftest.c
melunko@47
 20426
    for i in 1 2 3 4 5 6; do
melunko@47
 20427
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
melunko@47
 20428
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
melunko@47
 20429
      # Solaris 8's {/usr,}/bin/sh.
melunko@47
 20430
      touch sub/conftst$i.h
melunko@47
 20431
    done
melunko@47
 20432
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
melunko@47
 20433
melunko@47
 20434
    case $depmode in
melunko@47
 20435
    nosideeffect)
melunko@47
 20436
      # after this tag, mechanisms are not by side-effect, so they'll
melunko@47
 20437
      # only be used when explicitly requested
melunko@47
 20438
      if test "x$enable_dependency_tracking" = xyes; then
melunko@47
 20439
	continue
melunko@47
 20440
      else
melunko@47
 20441
	break
melunko@47
 20442
      fi
melunko@47
 20443
      ;;
melunko@47
 20444
    none) break ;;
melunko@47
 20445
    esac
melunko@47
 20446
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
melunko@47
 20447
    # mode.  It turns out that the SunPro C++ compiler does not properly
melunko@47
 20448
    # handle `-M -o', and we need to detect this.
melunko@47
 20449
    if depmode=$depmode \
melunko@47
 20450
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
melunko@47
 20451
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
melunko@47
 20452
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
melunko@47
 20453
         >/dev/null 2>conftest.err &&
melunko@47
 20454
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
melunko@47
 20455
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
melunko@47
 20456
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
melunko@47
 20457
      # icc doesn't choke on unknown options, it will just issue warnings
melunko@47
 20458
      # or remarks (even with -Werror).  So we grep stderr for any message
melunko@47
 20459
      # that says an option was ignored or not supported.
melunko@47
 20460
      # When given -MP, icc 7.0 and 7.1 complain thusly:
melunko@47
 20461
      #   icc: Command line warning: ignoring option '-M'; no argument required
melunko@47
 20462
      # The diagnosis changed in icc 8.0:
melunko@47
 20463
      #   icc: Command line remark: option '-MP' not supported
melunko@47
 20464
      if (grep 'ignoring option' conftest.err ||
melunko@47
 20465
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
melunko@47
 20466
        am_cv_CC_dependencies_compiler_type=$depmode
melunko@47
 20467
        break
melunko@47
 20468
      fi
melunko@47
 20469
    fi
melunko@47
 20470
  done
melunko@47
 20471
melunko@47
 20472
  cd ..
melunko@47
 20473
  rm -rf conftest.dir
melunko@47
 20474
else
melunko@47
 20475
  am_cv_CC_dependencies_compiler_type=none
melunko@47
 20476
fi
melunko@47
 20477
melunko@47
 20478
fi
melunko@47
 20479
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
melunko@47
 20480
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
melunko@47
 20481
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
melunko@47
 20482
melunko@47
 20483
 
melunko@47
 20484
melunko@47
 20485
if 
melunko@47
 20486
  test "x$enable_dependency_tracking" != xno \
melunko@47
 20487
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
melunko@47
 20488
  am__fastdepCC_TRUE=
melunko@47
 20489
  am__fastdepCC_FALSE='#'
melunko@47
 20490
else
melunko@47
 20491
  am__fastdepCC_TRUE='#'
melunko@47
 20492
  am__fastdepCC_FALSE=
melunko@47
 20493
fi
melunko@47
 20494
melunko@47
 20495
melunko@47
 20496
melunko@47
 20497
# By default we simply use the C compiler to build assembly code.
melunko@47
 20498
melunko@47
 20499
test "${CCAS+set}" = set || CCAS=$CC
melunko@47
 20500
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
melunko@47
 20501
melunko@47
 20502
melunko@47
 20503
melunko@47
 20504
melunko@47
 20505
melunko@47
 20506
  echo "$as_me:$LINENO: checking to see if compiler understands -Wall" >&5
melunko@47
 20507
echo $ECHO_N "checking to see if compiler understands -Wall... $ECHO_C" >&6
melunko@47
 20508
melunko@47
 20509
  save_CFLAGS="$CFLAGS"
melunko@47
 20510
  CFLAGS="$CFLAGS -Wall"
melunko@47
 20511
melunko@47
 20512
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 20513
/* confdefs.h.  */
melunko@47
 20514
_ACEOF
melunko@47
 20515
cat confdefs.h >>conftest.$ac_ext
melunko@47
 20516
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 20517
/* end confdefs.h.  */
melunko@47
 20518
 
melunko@47
 20519
int
melunko@47
 20520
main ()
melunko@47
 20521
{
melunko@47
 20522
melunko@47
 20523
  ;
melunko@47
 20524
  return 0;
melunko@47
 20525
}
melunko@47
 20526
_ACEOF
melunko@47
 20527
rm -f conftest.$ac_objext
melunko@47
 20528
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 20529
  (eval $ac_compile) 2>conftest.er1
melunko@47
 20530
  ac_status=$?
melunko@47
 20531
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 20532
  rm -f conftest.er1
melunko@47
 20533
  cat conftest.err >&5
melunko@47
 20534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20535
  (exit $ac_status); } &&
melunko@47
 20536
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 20537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20538
  (eval $ac_try) 2>&5
melunko@47
 20539
  ac_status=$?
melunko@47
 20540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20541
  (exit $ac_status); }; } &&
melunko@47
 20542
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
 20543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20544
  (eval $ac_try) 2>&5
melunko@47
 20545
  ac_status=$?
melunko@47
 20546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20547
  (exit $ac_status); }; }; then
melunko@47
 20548
  flag_ok=yes
melunko@47
 20549
else
melunko@47
 20550
  echo "$as_me: failed program was:" >&5
melunko@47
 20551
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 20552
melunko@47
 20553
flag_ok=no
melunko@47
 20554
fi
melunko@47
 20555
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
 20556
  CFLAGS="$save_CFLAGS"
melunko@47
 20557
melunko@47
 20558
  if test "X$flag_ok" = Xyes ; then
melunko@47
 20559
    GST_WALL="yes"
melunko@47
 20560
    true
melunko@47
 20561
  else
melunko@47
 20562
    GST_WALL="no"
melunko@47
 20563
    true
melunko@47
 20564
  fi
melunko@47
 20565
  echo "$as_me:$LINENO: result: $flag_ok" >&5
melunko@47
 20566
echo "${ECHO_T}$flag_ok" >&6
melunko@47
 20567
melunko@47
 20568
melunko@47
 20569
if test "x$GST_WALL" = "xyes"; then
melunko@47
 20570
  ERROR_CFLAGS="$GST_ERROR -Wall"
melunko@47
 20571
melunko@47
 20572
  if test "x$GST_CVS" = "xyes"; then
melunko@47
 20573
    
melunko@47
 20574
  echo "$as_me:$LINENO: checking to see if compiler understands -Werror" >&5
melunko@47
 20575
echo $ECHO_N "checking to see if compiler understands -Werror... $ECHO_C" >&6
melunko@47
 20576
melunko@47
 20577
  save_CFLAGS="$CFLAGS"
melunko@47
 20578
  CFLAGS="$CFLAGS -Werror"
melunko@47
 20579
melunko@47
 20580
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 20581
/* confdefs.h.  */
melunko@47
 20582
_ACEOF
melunko@47
 20583
cat confdefs.h >>conftest.$ac_ext
melunko@47
 20584
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 20585
/* end confdefs.h.  */
melunko@47
 20586
 
melunko@47
 20587
int
melunko@47
 20588
main ()
melunko@47
 20589
{
melunko@47
 20590
melunko@47
 20591
  ;
melunko@47
 20592
  return 0;
melunko@47
 20593
}
melunko@47
 20594
_ACEOF
melunko@47
 20595
rm -f conftest.$ac_objext
melunko@47
 20596
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 20597
  (eval $ac_compile) 2>conftest.er1
melunko@47
 20598
  ac_status=$?
melunko@47
 20599
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 20600
  rm -f conftest.er1
melunko@47
 20601
  cat conftest.err >&5
melunko@47
 20602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20603
  (exit $ac_status); } &&
melunko@47
 20604
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 20605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20606
  (eval $ac_try) 2>&5
melunko@47
 20607
  ac_status=$?
melunko@47
 20608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20609
  (exit $ac_status); }; } &&
melunko@47
 20610
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
 20611
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20612
  (eval $ac_try) 2>&5
melunko@47
 20613
  ac_status=$?
melunko@47
 20614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20615
  (exit $ac_status); }; }; then
melunko@47
 20616
  flag_ok=yes
melunko@47
 20617
else
melunko@47
 20618
  echo "$as_me: failed program was:" >&5
melunko@47
 20619
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 20620
melunko@47
 20621
flag_ok=no
melunko@47
 20622
fi
melunko@47
 20623
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
 20624
  CFLAGS="$save_CFLAGS"
melunko@47
 20625
melunko@47
 20626
  if test "X$flag_ok" = Xyes ; then
melunko@47
 20627
    ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
melunko@47
 20628
    true
melunko@47
 20629
  else
melunko@47
 20630
    ERROR_CFLAGS="$ERROR_CFLAGS"
melunko@47
 20631
    true
melunko@47
 20632
  fi
melunko@47
 20633
  echo "$as_me:$LINENO: result: $flag_ok" >&5
melunko@47
 20634
echo "${ECHO_T}$flag_ok" >&6
melunko@47
 20635
melunko@47
 20636
  fi
melunko@47
 20637
fi
melunko@47
 20638
melunko@47
 20639
melunko@47
 20640
melunko@47
 20641
ac_ext=cc
melunko@47
 20642
ac_cpp='$CXXCPP $CPPFLAGS'
melunko@47
 20643
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
 20644
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
 20645
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
melunko@47
 20646
if test -n "$ac_tool_prefix"; then
melunko@47
 20647
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
melunko@47
 20648
  do
melunko@47
 20649
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
melunko@47
 20650
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
melunko@47
 20651
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
 20652
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
 20653
if test "${ac_cv_prog_CXX+set}" = set; then
melunko@47
 20654
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 20655
else
melunko@47
 20656
  if test -n "$CXX"; then
melunko@47
 20657
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
melunko@47
 20658
else
melunko@47
 20659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 20660
for as_dir in $PATH
melunko@47
 20661
do
melunko@47
 20662
  IFS=$as_save_IFS
melunko@47
 20663
  test -z "$as_dir" && as_dir=.
melunko@47
 20664
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
 20665
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
 20666
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
melunko@47
 20667
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
 20668
    break 2
melunko@47
 20669
  fi
melunko@47
 20670
done
melunko@47
 20671
done
melunko@47
 20672
melunko@47
 20673
fi
melunko@47
 20674
fi
melunko@47
 20675
CXX=$ac_cv_prog_CXX
melunko@47
 20676
if test -n "$CXX"; then
melunko@47
 20677
  echo "$as_me:$LINENO: result: $CXX" >&5
melunko@47
 20678
echo "${ECHO_T}$CXX" >&6
melunko@47
 20679
else
melunko@47
 20680
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 20681
echo "${ECHO_T}no" >&6
melunko@47
 20682
fi
melunko@47
 20683
melunko@47
 20684
    test -n "$CXX" && break
melunko@47
 20685
  done
melunko@47
 20686
fi
melunko@47
 20687
if test -z "$CXX"; then
melunko@47
 20688
  ac_ct_CXX=$CXX
melunko@47
 20689
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
melunko@47
 20690
do
melunko@47
 20691
  # Extract the first word of "$ac_prog", so it can be a program name with args.
melunko@47
 20692
set dummy $ac_prog; ac_word=$2
melunko@47
 20693
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
 20694
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
 20695
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
melunko@47
 20696
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 20697
else
melunko@47
 20698
  if test -n "$ac_ct_CXX"; then
melunko@47
 20699
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
melunko@47
 20700
else
melunko@47
 20701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 20702
for as_dir in $PATH
melunko@47
 20703
do
melunko@47
 20704
  IFS=$as_save_IFS
melunko@47
 20705
  test -z "$as_dir" && as_dir=.
melunko@47
 20706
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
 20707
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
 20708
    ac_cv_prog_ac_ct_CXX="$ac_prog"
melunko@47
 20709
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
 20710
    break 2
melunko@47
 20711
  fi
melunko@47
 20712
done
melunko@47
 20713
done
melunko@47
 20714
melunko@47
 20715
fi
melunko@47
 20716
fi
melunko@47
 20717
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
melunko@47
 20718
if test -n "$ac_ct_CXX"; then
melunko@47
 20719
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
melunko@47
 20720
echo "${ECHO_T}$ac_ct_CXX" >&6
melunko@47
 20721
else
melunko@47
 20722
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 20723
echo "${ECHO_T}no" >&6
melunko@47
 20724
fi
melunko@47
 20725
melunko@47
 20726
  test -n "$ac_ct_CXX" && break
melunko@47
 20727
done
melunko@47
 20728
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
melunko@47
 20729
melunko@47
 20730
  CXX=$ac_ct_CXX
melunko@47
 20731
fi
melunko@47
 20732
melunko@47
 20733
melunko@47
 20734
# Provide some information about the compiler.
melunko@47
 20735
echo "$as_me:$LINENO:" \
melunko@47
 20736
     "checking for C++ compiler version" >&5
melunko@47
 20737
ac_compiler=`set X $ac_compile; echo $2`
melunko@47
 20738
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
melunko@47
 20739
  (eval $ac_compiler --version </dev/null >&5) 2>&5
melunko@47
 20740
  ac_status=$?
melunko@47
 20741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20742
  (exit $ac_status); }
melunko@47
 20743
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
melunko@47
 20744
  (eval $ac_compiler -v </dev/null >&5) 2>&5
melunko@47
 20745
  ac_status=$?
melunko@47
 20746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20747
  (exit $ac_status); }
melunko@47
 20748
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
melunko@47
 20749
  (eval $ac_compiler -V </dev/null >&5) 2>&5
melunko@47
 20750
  ac_status=$?
melunko@47
 20751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20752
  (exit $ac_status); }
melunko@47
 20753
melunko@47
 20754
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
melunko@47
 20755
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
melunko@47
 20756
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
melunko@47
 20757
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 20758
else
melunko@47
 20759
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 20760
/* confdefs.h.  */
melunko@47
 20761
_ACEOF
melunko@47
 20762
cat confdefs.h >>conftest.$ac_ext
melunko@47
 20763
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 20764
/* end confdefs.h.  */
melunko@47
 20765
melunko@47
 20766
int
melunko@47
 20767
main ()
melunko@47
 20768
{
melunko@47
 20769
#ifndef __GNUC__
melunko@47
 20770
       choke me
melunko@47
 20771
#endif
melunko@47
 20772
melunko@47
 20773
  ;
melunko@47
 20774
  return 0;
melunko@47
 20775
}
melunko@47
 20776
_ACEOF
melunko@47
 20777
rm -f conftest.$ac_objext
melunko@47
 20778
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 20779
  (eval $ac_compile) 2>conftest.er1
melunko@47
 20780
  ac_status=$?
melunko@47
 20781
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 20782
  rm -f conftest.er1
melunko@47
 20783
  cat conftest.err >&5
melunko@47
 20784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20785
  (exit $ac_status); } &&
melunko@47
 20786
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
 20787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20788
  (eval $ac_try) 2>&5
melunko@47
 20789
  ac_status=$?
melunko@47
 20790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20791
  (exit $ac_status); }; } &&
melunko@47
 20792
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
 20793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20794
  (eval $ac_try) 2>&5
melunko@47
 20795
  ac_status=$?
melunko@47
 20796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20797
  (exit $ac_status); }; }; then
melunko@47
 20798
  ac_compiler_gnu=yes
melunko@47
 20799
else
melunko@47
 20800
  echo "$as_me: failed program was:" >&5
melunko@47
 20801
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 20802
melunko@47
 20803
ac_compiler_gnu=no
melunko@47
 20804
fi
melunko@47
 20805
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
 20806
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
melunko@47
 20807
melunko@47
 20808
fi
melunko@47
 20809
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
melunko@47
 20810
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
melunko@47
 20811
GXX=`test $ac_compiler_gnu = yes && echo yes`
melunko@47
 20812
ac_test_CXXFLAGS=${CXXFLAGS+set}
melunko@47
 20813
ac_save_CXXFLAGS=$CXXFLAGS
melunko@47
 20814
CXXFLAGS="-g"
melunko@47
 20815
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
melunko@47
 20816
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
melunko@47
 20817
if test "${ac_cv_prog_cxx_g+set}" = set; then
melunko@47
 20818
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 20819
else
melunko@47
 20820
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 20821
/* confdefs.h.  */
melunko@47
 20822
_ACEOF
melunko@47
 20823
cat confdefs.h >>conftest.$ac_ext
melunko@47
 20824
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 20825
/* end confdefs.h.  */
melunko@47
 20826
melunko@47
 20827
int
melunko@47
 20828
main ()
melunko@47
 20829
{
melunko@47
 20830
melunko@47
 20831
  ;
melunko@47
 20832
  return 0;
melunko@47
 20833
}
melunko@47
 20834
_ACEOF
melunko@47
 20835
rm -f conftest.$ac_objext
melunko@47
 20836
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 20837
  (eval $ac_compile) 2>conftest.er1
melunko@47
 20838
  ac_status=$?
melunko@47
 20839
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 20840
  rm -f conftest.er1
melunko@47
 20841
  cat conftest.err >&5
melunko@47
 20842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20843
  (exit $ac_status); } &&
melunko@47
 20844
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
 20845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20846
  (eval $ac_try) 2>&5
melunko@47
 20847
  ac_status=$?
melunko@47
 20848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20849
  (exit $ac_status); }; } &&
melunko@47
 20850
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
 20851
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20852
  (eval $ac_try) 2>&5
melunko@47
 20853
  ac_status=$?
melunko@47
 20854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20855
  (exit $ac_status); }; }; then
melunko@47
 20856
  ac_cv_prog_cxx_g=yes
melunko@47
 20857
else
melunko@47
 20858
  echo "$as_me: failed program was:" >&5
melunko@47
 20859
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 20860
melunko@47
 20861
ac_cv_prog_cxx_g=no
melunko@47
 20862
fi
melunko@47
 20863
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
 20864
fi
melunko@47
 20865
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
melunko@47
 20866
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
melunko@47
 20867
if test "$ac_test_CXXFLAGS" = set; then
melunko@47
 20868
  CXXFLAGS=$ac_save_CXXFLAGS
melunko@47
 20869
elif test $ac_cv_prog_cxx_g = yes; then
melunko@47
 20870
  if test "$GXX" = yes; then
melunko@47
 20871
    CXXFLAGS="-g -O2"
melunko@47
 20872
  else
melunko@47
 20873
    CXXFLAGS="-g"
melunko@47
 20874
  fi
melunko@47
 20875
else
melunko@47
 20876
  if test "$GXX" = yes; then
melunko@47
 20877
    CXXFLAGS="-O2"
melunko@47
 20878
  else
melunko@47
 20879
    CXXFLAGS=
melunko@47
 20880
  fi
melunko@47
 20881
fi
melunko@47
 20882
for ac_declaration in \
melunko@47
 20883
   '' \
melunko@47
 20884
   'extern "C" void std::exit (int) throw (); using std::exit;' \
melunko@47
 20885
   'extern "C" void std::exit (int); using std::exit;' \
melunko@47
 20886
   'extern "C" void exit (int) throw ();' \
melunko@47
 20887
   'extern "C" void exit (int);' \
melunko@47
 20888
   'void exit (int);'
melunko@47
 20889
do
melunko@47
 20890
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 20891
/* confdefs.h.  */
melunko@47
 20892
_ACEOF
melunko@47
 20893
cat confdefs.h >>conftest.$ac_ext
melunko@47
 20894
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 20895
/* end confdefs.h.  */
melunko@47
 20896
$ac_declaration
melunko@47
 20897
@%:@include <stdlib.h>
melunko@47
 20898
int
melunko@47
 20899
main ()
melunko@47
 20900
{
melunko@47
 20901
exit (42);
melunko@47
 20902
  ;
melunko@47
 20903
  return 0;
melunko@47
 20904
}
melunko@47
 20905
_ACEOF
melunko@47
 20906
rm -f conftest.$ac_objext
melunko@47
 20907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 20908
  (eval $ac_compile) 2>conftest.er1
melunko@47
 20909
  ac_status=$?
melunko@47
 20910
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 20911
  rm -f conftest.er1
melunko@47
 20912
  cat conftest.err >&5
melunko@47
 20913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20914
  (exit $ac_status); } &&
melunko@47
 20915
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
 20916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20917
  (eval $ac_try) 2>&5
melunko@47
 20918
  ac_status=$?
melunko@47
 20919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20920
  (exit $ac_status); }; } &&
melunko@47
 20921
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
 20922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20923
  (eval $ac_try) 2>&5
melunko@47
 20924
  ac_status=$?
melunko@47
 20925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20926
  (exit $ac_status); }; }; then
melunko@47
 20927
  :
melunko@47
 20928
else
melunko@47
 20929
  echo "$as_me: failed program was:" >&5
melunko@47
 20930
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 20931
melunko@47
 20932
continue
melunko@47
 20933
fi
melunko@47
 20934
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
 20935
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 20936
/* confdefs.h.  */
melunko@47
 20937
_ACEOF
melunko@47
 20938
cat confdefs.h >>conftest.$ac_ext
melunko@47
 20939
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 20940
/* end confdefs.h.  */
melunko@47
 20941
$ac_declaration
melunko@47
 20942
int
melunko@47
 20943
main ()
melunko@47
 20944
{
melunko@47
 20945
exit (42);
melunko@47
 20946
  ;
melunko@47
 20947
  return 0;
melunko@47
 20948
}
melunko@47
 20949
_ACEOF
melunko@47
 20950
rm -f conftest.$ac_objext
melunko@47
 20951
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 20952
  (eval $ac_compile) 2>conftest.er1
melunko@47
 20953
  ac_status=$?
melunko@47
 20954
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 20955
  rm -f conftest.er1
melunko@47
 20956
  cat conftest.err >&5
melunko@47
 20957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20958
  (exit $ac_status); } &&
melunko@47
 20959
	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
melunko@47
 20960
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20961
  (eval $ac_try) 2>&5
melunko@47
 20962
  ac_status=$?
melunko@47
 20963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20964
  (exit $ac_status); }; } &&
melunko@47
 20965
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
 20966
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 20967
  (eval $ac_try) 2>&5
melunko@47
 20968
  ac_status=$?
melunko@47
 20969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 20970
  (exit $ac_status); }; }; then
melunko@47
 20971
  break
melunko@47
 20972
else
melunko@47
 20973
  echo "$as_me: failed program was:" >&5
melunko@47
 20974
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 20975
melunko@47
 20976
fi
melunko@47
 20977
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
 20978
done
melunko@47
 20979
rm -f conftest*
melunko@47
 20980
if test -n "$ac_declaration"; then
melunko@47
 20981
  echo '#ifdef __cplusplus' >>confdefs.h
melunko@47
 20982
  echo $ac_declaration      >>confdefs.h
melunko@47
 20983
  echo '#endif'             >>confdefs.h
melunko@47
 20984
fi
melunko@47
 20985
melunko@47
 20986
ac_ext=c
melunko@47
 20987
ac_cpp='$CPP $CPPFLAGS'
melunko@47
 20988
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
 20989
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
 20990
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
 20991
melunko@47
 20992
depcc="$CXX"  am_compiler_list=
melunko@47
 20993
melunko@47
 20994
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
melunko@47
 20995
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
melunko@47
 20996
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
melunko@47
 20997
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 20998
else
melunko@47
 20999
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
melunko@47
 21000
  # We make a subdir and do the tests there.  Otherwise we can end up
melunko@47
 21001
  # making bogus files that we don't know about and never remove.  For
melunko@47
 21002
  # instance it was reported that on HP-UX the gcc test will end up
melunko@47
 21003
  # making a dummy file named `D' -- because `-MD' means `put the output
melunko@47
 21004
  # in D'.
melunko@47
 21005
  mkdir conftest.dir
melunko@47
 21006
  # Copy depcomp to subdir because otherwise we won't find it if we're
melunko@47
 21007
  # using a relative directory.
melunko@47
 21008
  cp "$am_depcomp" conftest.dir
melunko@47
 21009
  cd conftest.dir
melunko@47
 21010
  # We will build objects and dependencies in a subdirectory because
melunko@47
 21011
  # it helps to detect inapplicable dependency modes.  For instance
melunko@47
 21012
  # both Tru64's cc and ICC support -MD to output dependencies as a
melunko@47
 21013
  # side effect of compilation, but ICC will put the dependencies in
melunko@47
 21014
  # the current directory while Tru64 will put them in the object
melunko@47
 21015
  # directory.
melunko@47
 21016
  mkdir sub
melunko@47
 21017
melunko@47
 21018
  am_cv_CXX_dependencies_compiler_type=none
melunko@47
 21019
  if test "$am_compiler_list" = ""; then
melunko@47
 21020
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
melunko@47
 21021
  fi
melunko@47
 21022
  for depmode in $am_compiler_list; do
melunko@47
 21023
    # Setup a source with many dependencies, because some compilers
melunko@47
 21024
    # like to wrap large dependency lists on column 80 (with \), and
melunko@47
 21025
    # we should not choose a depcomp mode which is confused by this.
melunko@47
 21026
    #
melunko@47
 21027
    # We need to recreate these files for each test, as the compiler may
melunko@47
 21028
    # overwrite some of them when testing with obscure command lines.
melunko@47
 21029
    # This happens at least with the AIX C compiler.
melunko@47
 21030
    : > sub/conftest.c
melunko@47
 21031
    for i in 1 2 3 4 5 6; do
melunko@47
 21032
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
melunko@47
 21033
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
melunko@47
 21034
      # Solaris 8's {/usr,}/bin/sh.
melunko@47
 21035
      touch sub/conftst$i.h
melunko@47
 21036
    done
melunko@47
 21037
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
melunko@47
 21038
melunko@47
 21039
    case $depmode in
melunko@47
 21040
    nosideeffect)
melunko@47
 21041
      # after this tag, mechanisms are not by side-effect, so they'll
melunko@47
 21042
      # only be used when explicitly requested
melunko@47
 21043
      if test "x$enable_dependency_tracking" = xyes; then
melunko@47
 21044
	continue
melunko@47
 21045
      else
melunko@47
 21046
	break
melunko@47
 21047
      fi
melunko@47
 21048
      ;;
melunko@47
 21049
    none) break ;;
melunko@47
 21050
    esac
melunko@47
 21051
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
melunko@47
 21052
    # mode.  It turns out that the SunPro C++ compiler does not properly
melunko@47
 21053
    # handle `-M -o', and we need to detect this.
melunko@47
 21054
    if depmode=$depmode \
melunko@47
 21055
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
melunko@47
 21056
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
melunko@47
 21057
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
melunko@47
 21058
         >/dev/null 2>conftest.err &&
melunko@47
 21059
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
melunko@47
 21060
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
melunko@47
 21061
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
melunko@47
 21062
      # icc doesn't choke on unknown options, it will just issue warnings
melunko@47
 21063
      # or remarks (even with -Werror).  So we grep stderr for any message
melunko@47
 21064
      # that says an option was ignored or not supported.
melunko@47
 21065
      # When given -MP, icc 7.0 and 7.1 complain thusly:
melunko@47
 21066
      #   icc: Command line warning: ignoring option '-M'; no argument required
melunko@47
 21067
      # The diagnosis changed in icc 8.0:
melunko@47
 21068
      #   icc: Command line remark: option '-MP' not supported
melunko@47
 21069
      if (grep 'ignoring option' conftest.err ||
melunko@47
 21070
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
melunko@47
 21071
        am_cv_CXX_dependencies_compiler_type=$depmode
melunko@47
 21072
        break
melunko@47
 21073
      fi
melunko@47
 21074
    fi
melunko@47
 21075
  done
melunko@47
 21076
melunko@47
 21077
  cd ..
melunko@47
 21078
  rm -rf conftest.dir
melunko@47
 21079
else
melunko@47
 21080
  am_cv_CXX_dependencies_compiler_type=none
melunko@47
 21081
fi
melunko@47
 21082
melunko@47
 21083
fi
melunko@47
 21084
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
melunko@47
 21085
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
melunko@47
 21086
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
melunko@47
 21087
melunko@47
 21088
 
melunko@47
 21089
melunko@47
 21090
if 
melunko@47
 21091
  test "x$enable_dependency_tracking" != xno \
melunko@47
 21092
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
melunko@47
 21093
  am__fastdepCXX_TRUE=
melunko@47
 21094
  am__fastdepCXX_FALSE='#'
melunko@47
 21095
else
melunko@47
 21096
  am__fastdepCXX_TRUE='#'
melunko@47
 21097
  am__fastdepCXX_FALSE=
melunko@47
 21098
fi
melunko@47
 21099
melunko@47
 21100
melunko@47
 21101
# Extract the first word of "$CXX", so it can be a program name with args.
melunko@47
 21102
set dummy $CXX; ac_word=$2
melunko@47
 21103
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
 21104
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
 21105
if test "${ac_cv_prog_HAVE_CXX+set}" = set; then
melunko@47
 21106
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 21107
else
melunko@47
 21108
  if test -n "$HAVE_CXX"; then
melunko@47
 21109
  ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test.
melunko@47
 21110
else
melunko@47
 21111
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 21112
for as_dir in $PATH
melunko@47
 21113
do
melunko@47
 21114
  IFS=$as_save_IFS
melunko@47
 21115
  test -z "$as_dir" && as_dir=.
melunko@47
 21116
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
 21117
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
 21118
    ac_cv_prog_HAVE_CXX="yes"
melunko@47
 21119
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
 21120
    break 2
melunko@47
 21121
  fi
melunko@47
 21122
done
melunko@47
 21123
done
melunko@47
 21124
melunko@47
 21125
  test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX="no"
melunko@47
 21126
fi
melunko@47
 21127
fi
melunko@47
 21128
HAVE_CXX=$ac_cv_prog_HAVE_CXX
melunko@47
 21129
if test -n "$HAVE_CXX"; then
melunko@47
 21130
  echo "$as_me:$LINENO: result: $HAVE_CXX" >&5
melunko@47
 21131
echo "${ECHO_T}$HAVE_CXX" >&6
melunko@47
 21132
else
melunko@47
 21133
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 21134
echo "${ECHO_T}no" >&6
melunko@47
 21135
fi
melunko@47
 21136
melunko@47
 21137
ac_ext=cc
melunko@47
 21138
ac_cpp='$CXXCPP $CPPFLAGS'
melunko@47
 21139
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
 21140
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
 21141
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
melunko@47
 21142
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
melunko@47
 21143
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
melunko@47
 21144
if test -z "$CXXCPP"; then
melunko@47
 21145
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
melunko@47
 21146
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 21147
else
melunko@47
 21148
      # Double quotes because CXXCPP needs to be expanded
melunko@47
 21149
    for CXXCPP in "$CXX -E" "/lib/cpp"
melunko@47
 21150
    do
melunko@47
 21151
      ac_preproc_ok=false
melunko@47
 21152
for ac_cxx_preproc_warn_flag in '' yes
melunko@47
 21153
do
melunko@47
 21154
  # Use a header file that comes with gcc, so configuring glibc
melunko@47
 21155
  # with a fresh cross-compiler works.
melunko@47
 21156
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
melunko@47
 21157
  # <limits.h> exists even on freestanding compilers.
melunko@47
 21158
  # On the NeXT, cc -E runs the code through the compiler's parser,
melunko@47
 21159
  # not just through cpp. "Syntax error" is here to catch this case.
melunko@47
 21160
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 21161
/* confdefs.h.  */
melunko@47
 21162
_ACEOF
melunko@47
 21163
cat confdefs.h >>conftest.$ac_ext
melunko@47
 21164
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 21165
/* end confdefs.h.  */
melunko@47
 21166
@%:@ifdef __STDC__
melunko@47
 21167
@%:@ include <limits.h>
melunko@47
 21168
@%:@else
melunko@47
 21169
@%:@ include <assert.h>
melunko@47
 21170
@%:@endif
melunko@47
 21171
		     Syntax error
melunko@47
 21172
_ACEOF
melunko@47
 21173
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
melunko@47
 21174
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
melunko@47
 21175
  ac_status=$?
melunko@47
 21176
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 21177
  rm -f conftest.er1
melunko@47
 21178
  cat conftest.err >&5
melunko@47
 21179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21180
  (exit $ac_status); } >/dev/null; then
melunko@47
 21181
  if test -s conftest.err; then
melunko@47
 21182
    ac_cpp_err=$ac_cxx_preproc_warn_flag
melunko@47
 21183
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
melunko@47
 21184
  else
melunko@47
 21185
    ac_cpp_err=
melunko@47
 21186
  fi
melunko@47
 21187
else
melunko@47
 21188
  ac_cpp_err=yes
melunko@47
 21189
fi
melunko@47
 21190
if test -z "$ac_cpp_err"; then
melunko@47
 21191
  :
melunko@47
 21192
else
melunko@47
 21193
  echo "$as_me: failed program was:" >&5
melunko@47
 21194
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 21195
melunko@47
 21196
  # Broken: fails on valid input.
melunko@47
 21197
continue
melunko@47
 21198
fi
melunko@47
 21199
rm -f conftest.err conftest.$ac_ext
melunko@47
 21200
melunko@47
 21201
  # OK, works on sane cases.  Now check whether non-existent headers
melunko@47
 21202
  # can be detected and how.
melunko@47
 21203
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 21204
/* confdefs.h.  */
melunko@47
 21205
_ACEOF
melunko@47
 21206
cat confdefs.h >>conftest.$ac_ext
melunko@47
 21207
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 21208
/* end confdefs.h.  */
melunko@47
 21209
@%:@include <ac_nonexistent.h>
melunko@47
 21210
_ACEOF
melunko@47
 21211
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
melunko@47
 21212
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
melunko@47
 21213
  ac_status=$?
melunko@47
 21214
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 21215
  rm -f conftest.er1
melunko@47
 21216
  cat conftest.err >&5
melunko@47
 21217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21218
  (exit $ac_status); } >/dev/null; then
melunko@47
 21219
  if test -s conftest.err; then
melunko@47
 21220
    ac_cpp_err=$ac_cxx_preproc_warn_flag
melunko@47
 21221
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
melunko@47
 21222
  else
melunko@47
 21223
    ac_cpp_err=
melunko@47
 21224
  fi
melunko@47
 21225
else
melunko@47
 21226
  ac_cpp_err=yes
melunko@47
 21227
fi
melunko@47
 21228
if test -z "$ac_cpp_err"; then
melunko@47
 21229
  # Broken: success on invalid input.
melunko@47
 21230
continue
melunko@47
 21231
else
melunko@47
 21232
  echo "$as_me: failed program was:" >&5
melunko@47
 21233
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 21234
melunko@47
 21235
  # Passes both tests.
melunko@47
 21236
ac_preproc_ok=:
melunko@47
 21237
break
melunko@47
 21238
fi
melunko@47
 21239
rm -f conftest.err conftest.$ac_ext
melunko@47
 21240
melunko@47
 21241
done
melunko@47
 21242
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
melunko@47
 21243
rm -f conftest.err conftest.$ac_ext
melunko@47
 21244
if $ac_preproc_ok; then
melunko@47
 21245
  break
melunko@47
 21246
fi
melunko@47
 21247
melunko@47
 21248
    done
melunko@47
 21249
    ac_cv_prog_CXXCPP=$CXXCPP
melunko@47
 21250
  
melunko@47
 21251
fi
melunko@47
 21252
  CXXCPP=$ac_cv_prog_CXXCPP
melunko@47
 21253
else
melunko@47
 21254
  ac_cv_prog_CXXCPP=$CXXCPP
melunko@47
 21255
fi
melunko@47
 21256
echo "$as_me:$LINENO: result: $CXXCPP" >&5
melunko@47
 21257
echo "${ECHO_T}$CXXCPP" >&6
melunko@47
 21258
ac_preproc_ok=false
melunko@47
 21259
for ac_cxx_preproc_warn_flag in '' yes
melunko@47
 21260
do
melunko@47
 21261
  # Use a header file that comes with gcc, so configuring glibc
melunko@47
 21262
  # with a fresh cross-compiler works.
melunko@47
 21263
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
melunko@47
 21264
  # <limits.h> exists even on freestanding compilers.
melunko@47
 21265
  # On the NeXT, cc -E runs the code through the compiler's parser,
melunko@47
 21266
  # not just through cpp. "Syntax error" is here to catch this case.
melunko@47
 21267
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 21268
/* confdefs.h.  */
melunko@47
 21269
_ACEOF
melunko@47
 21270
cat confdefs.h >>conftest.$ac_ext
melunko@47
 21271
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 21272
/* end confdefs.h.  */
melunko@47
 21273
@%:@ifdef __STDC__
melunko@47
 21274
@%:@ include <limits.h>
melunko@47
 21275
@%:@else
melunko@47
 21276
@%:@ include <assert.h>
melunko@47
 21277
@%:@endif
melunko@47
 21278
		     Syntax error
melunko@47
 21279
_ACEOF
melunko@47
 21280
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
melunko@47
 21281
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
melunko@47
 21282
  ac_status=$?
melunko@47
 21283
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 21284
  rm -f conftest.er1
melunko@47
 21285
  cat conftest.err >&5
melunko@47
 21286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21287
  (exit $ac_status); } >/dev/null; then
melunko@47
 21288
  if test -s conftest.err; then
melunko@47
 21289
    ac_cpp_err=$ac_cxx_preproc_warn_flag
melunko@47
 21290
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
melunko@47
 21291
  else
melunko@47
 21292
    ac_cpp_err=
melunko@47
 21293
  fi
melunko@47
 21294
else
melunko@47
 21295
  ac_cpp_err=yes
melunko@47
 21296
fi
melunko@47
 21297
if test -z "$ac_cpp_err"; then
melunko@47
 21298
  :
melunko@47
 21299
else
melunko@47
 21300
  echo "$as_me: failed program was:" >&5
melunko@47
 21301
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 21302
melunko@47
 21303
  # Broken: fails on valid input.
melunko@47
 21304
continue
melunko@47
 21305
fi
melunko@47
 21306
rm -f conftest.err conftest.$ac_ext
melunko@47
 21307
melunko@47
 21308
  # OK, works on sane cases.  Now check whether non-existent headers
melunko@47
 21309
  # can be detected and how.
melunko@47
 21310
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 21311
/* confdefs.h.  */
melunko@47
 21312
_ACEOF
melunko@47
 21313
cat confdefs.h >>conftest.$ac_ext
melunko@47
 21314
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 21315
/* end confdefs.h.  */
melunko@47
 21316
@%:@include <ac_nonexistent.h>
melunko@47
 21317
_ACEOF
melunko@47
 21318
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
melunko@47
 21319
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
melunko@47
 21320
  ac_status=$?
melunko@47
 21321
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 21322
  rm -f conftest.er1
melunko@47
 21323
  cat conftest.err >&5
melunko@47
 21324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21325
  (exit $ac_status); } >/dev/null; then
melunko@47
 21326
  if test -s conftest.err; then
melunko@47
 21327
    ac_cpp_err=$ac_cxx_preproc_warn_flag
melunko@47
 21328
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
melunko@47
 21329
  else
melunko@47
 21330
    ac_cpp_err=
melunko@47
 21331
  fi
melunko@47
 21332
else
melunko@47
 21333
  ac_cpp_err=yes
melunko@47
 21334
fi
melunko@47
 21335
if test -z "$ac_cpp_err"; then
melunko@47
 21336
  # Broken: success on invalid input.
melunko@47
 21337
continue
melunko@47
 21338
else
melunko@47
 21339
  echo "$as_me: failed program was:" >&5
melunko@47
 21340
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 21341
melunko@47
 21342
  # Passes both tests.
melunko@47
 21343
ac_preproc_ok=:
melunko@47
 21344
break
melunko@47
 21345
fi
melunko@47
 21346
rm -f conftest.err conftest.$ac_ext
melunko@47
 21347
melunko@47
 21348
done
melunko@47
 21349
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
melunko@47
 21350
rm -f conftest.err conftest.$ac_ext
melunko@47
 21351
if $ac_preproc_ok; then
melunko@47
 21352
  :
melunko@47
 21353
else
melunko@47
 21354
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
melunko@47
 21355
See \`config.log' for more details." >&5
melunko@47
 21356
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
melunko@47
 21357
See \`config.log' for more details." >&2;}
melunko@47
 21358
   { (exit 1); exit 1; }; }
melunko@47
 21359
fi
melunko@47
 21360
melunko@47
 21361
ac_ext=c
melunko@47
 21362
ac_cpp='$CPP $CPPFLAGS'
melunko@47
 21363
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
melunko@47
 21364
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
melunko@47
 21365
ac_compiler_gnu=$ac_cv_c_compiler_gnu
melunko@47
 21366
melunko@47
 21367
echo "$as_me:$LINENO: checking for library containing strerror" >&5
melunko@47
 21368
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
melunko@47
 21369
if test "${ac_cv_search_strerror+set}" = set; then
melunko@47
 21370
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 21371
else
melunko@47
 21372
  ac_func_search_save_LIBS=$LIBS
melunko@47
 21373
ac_cv_search_strerror=no
melunko@47
 21374
cat >conftest.$ac_ext <<_ACEOF
melunko@47
 21375
/* confdefs.h.  */
melunko@47
 21376
_ACEOF
melunko@47
 21377
cat confdefs.h >>conftest.$ac_ext
melunko@47
 21378
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 21379
/* end confdefs.h.  */
melunko@47
 21380
melunko@47
 21381
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 21382
#ifdef __cplusplus
melunko@47
 21383
extern "C"
melunko@47
 21384
#endif
melunko@47
 21385
/* We use char because int might match the return type of a gcc2
melunko@47
 21386
   builtin and then its argument prototype would still apply.  */
melunko@47
 21387
char strerror ();
melunko@47
 21388
int
melunko@47
 21389
main ()
melunko@47
 21390
{
melunko@47
 21391
strerror ();
melunko@47
 21392
  ;
melunko@47
 21393
  return 0;
melunko@47
 21394
}
melunko@47
 21395
_ACEOF
melunko@47
 21396
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 21397
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 21398
  (eval $ac_link) 2>conftest.er1
melunko@47
 21399
  ac_status=$?
melunko@47
 21400
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 21401
  rm -f conftest.er1
melunko@47
 21402
  cat conftest.err >&5
melunko@47
 21403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21404
  (exit $ac_status); } &&
melunko@47
 21405
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 21406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 21407
  (eval $ac_try) 2>&5
melunko@47
 21408
  ac_status=$?
melunko@47
 21409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21410
  (exit $ac_status); }; } &&
melunko@47
 21411
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 21412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 21413
  (eval $ac_try) 2>&5
melunko@47
 21414
  ac_status=$?
melunko@47
 21415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21416
  (exit $ac_status); }; }; then
melunko@47
 21417
  ac_cv_search_strerror="none required"
melunko@47
 21418
else
melunko@47
 21419
  echo "$as_me: failed program was:" >&5
melunko@47
 21420
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 21421
melunko@47
 21422
fi
melunko@47
 21423
rm -f conftest.err conftest.$ac_objext \
melunko@47
 21424
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 21425
if test "$ac_cv_search_strerror" = no; then
melunko@47
 21426
  for ac_lib in cposix; do
melunko@47
 21427
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
melunko@47
 21428
    cat >conftest.$ac_ext <<_ACEOF
melunko@47
 21429
/* confdefs.h.  */
melunko@47
 21430
_ACEOF
melunko@47
 21431
cat confdefs.h >>conftest.$ac_ext
melunko@47
 21432
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 21433
/* end confdefs.h.  */
melunko@47
 21434
melunko@47
 21435
/* Override any gcc2 internal prototype to avoid an error.  */
melunko@47
 21436
#ifdef __cplusplus
melunko@47
 21437
extern "C"
melunko@47
 21438
#endif
melunko@47
 21439
/* We use char because int might match the return type of a gcc2
melunko@47
 21440
   builtin and then its argument prototype would still apply.  */
melunko@47
 21441
char strerror ();
melunko@47
 21442
int
melunko@47
 21443
main ()
melunko@47
 21444
{
melunko@47
 21445
strerror ();
melunko@47
 21446
  ;
melunko@47
 21447
  return 0;
melunko@47
 21448
}
melunko@47
 21449
_ACEOF
melunko@47
 21450
rm -f conftest.$ac_objext conftest$ac_exeext
melunko@47
 21451
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 21452
  (eval $ac_link) 2>conftest.er1
melunko@47
 21453
  ac_status=$?
melunko@47
 21454
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 21455
  rm -f conftest.er1
melunko@47
 21456
  cat conftest.err >&5
melunko@47
 21457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21458
  (exit $ac_status); } &&
melunko@47
 21459
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 21460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 21461
  (eval $ac_try) 2>&5
melunko@47
 21462
  ac_status=$?
melunko@47
 21463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21464
  (exit $ac_status); }; } &&
melunko@47
 21465
	 { ac_try='test -s conftest$ac_exeext'
melunko@47
 21466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 21467
  (eval $ac_try) 2>&5
melunko@47
 21468
  ac_status=$?
melunko@47
 21469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21470
  (exit $ac_status); }; }; then
melunko@47
 21471
  ac_cv_search_strerror="-l$ac_lib"
melunko@47
 21472
break
melunko@47
 21473
else
melunko@47
 21474
  echo "$as_me: failed program was:" >&5
melunko@47
 21475
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 21476
melunko@47
 21477
fi
melunko@47
 21478
rm -f conftest.err conftest.$ac_objext \
melunko@47
 21479
      conftest$ac_exeext conftest.$ac_ext
melunko@47
 21480
  done
melunko@47
 21481
fi
melunko@47
 21482
LIBS=$ac_func_search_save_LIBS
melunko@47
 21483
fi
melunko@47
 21484
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
melunko@47
 21485
echo "${ECHO_T}$ac_cv_search_strerror" >&6
melunko@47
 21486
if test "$ac_cv_search_strerror" != no; then
melunko@47
 21487
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
melunko@47
 21488
  
melunko@47
 21489
fi
melunko@47
 21490
melunko@47
 21491
melunko@47
 21492
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
melunko@47
 21493
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
melunko@47
 21494
if test "${ac_cv_header_stdc+set}" = set; then
melunko@47
 21495
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 21496
else
melunko@47
 21497
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 21498
/* confdefs.h.  */
melunko@47
 21499
_ACEOF
melunko@47
 21500
cat confdefs.h >>conftest.$ac_ext
melunko@47
 21501
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 21502
/* end confdefs.h.  */
melunko@47
 21503
#include <stdlib.h>
melunko@47
 21504
#include <stdarg.h>
melunko@47
 21505
#include <string.h>
melunko@47
 21506
#include <float.h>
melunko@47
 21507
melunko@47
 21508
int
melunko@47
 21509
main ()
melunko@47
 21510
{
melunko@47
 21511
melunko@47
 21512
  ;
melunko@47
 21513
  return 0;
melunko@47
 21514
}
melunko@47
 21515
_ACEOF
melunko@47
 21516
rm -f conftest.$ac_objext
melunko@47
 21517
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 21518
  (eval $ac_compile) 2>conftest.er1
melunko@47
 21519
  ac_status=$?
melunko@47
 21520
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 21521
  rm -f conftest.er1
melunko@47
 21522
  cat conftest.err >&5
melunko@47
 21523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21524
  (exit $ac_status); } &&
melunko@47
 21525
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 21526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 21527
  (eval $ac_try) 2>&5
melunko@47
 21528
  ac_status=$?
melunko@47
 21529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21530
  (exit $ac_status); }; } &&
melunko@47
 21531
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
 21532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 21533
  (eval $ac_try) 2>&5
melunko@47
 21534
  ac_status=$?
melunko@47
 21535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21536
  (exit $ac_status); }; }; then
melunko@47
 21537
  ac_cv_header_stdc=yes
melunko@47
 21538
else
melunko@47
 21539
  echo "$as_me: failed program was:" >&5
melunko@47
 21540
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 21541
melunko@47
 21542
ac_cv_header_stdc=no
melunko@47
 21543
fi
melunko@47
 21544
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
 21545
melunko@47
 21546
if test $ac_cv_header_stdc = yes; then
melunko@47
 21547
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
melunko@47
 21548
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 21549
/* confdefs.h.  */
melunko@47
 21550
_ACEOF
melunko@47
 21551
cat confdefs.h >>conftest.$ac_ext
melunko@47
 21552
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 21553
/* end confdefs.h.  */
melunko@47
 21554
#include <string.h>
melunko@47
 21555
melunko@47
 21556
_ACEOF
melunko@47
 21557
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
melunko@47
 21558
  $EGREP "memchr" >/dev/null 2>&1; then
melunko@47
 21559
  :
melunko@47
 21560
else
melunko@47
 21561
  ac_cv_header_stdc=no
melunko@47
 21562
fi
melunko@47
 21563
rm -f conftest*
melunko@47
 21564
melunko@47
 21565
fi
melunko@47
 21566
melunko@47
 21567
if test $ac_cv_header_stdc = yes; then
melunko@47
 21568
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
melunko@47
 21569
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 21570
/* confdefs.h.  */
melunko@47
 21571
_ACEOF
melunko@47
 21572
cat confdefs.h >>conftest.$ac_ext
melunko@47
 21573
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 21574
/* end confdefs.h.  */
melunko@47
 21575
#include <stdlib.h>
melunko@47
 21576
melunko@47
 21577
_ACEOF
melunko@47
 21578
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
melunko@47
 21579
  $EGREP "free" >/dev/null 2>&1; then
melunko@47
 21580
  :
melunko@47
 21581
else
melunko@47
 21582
  ac_cv_header_stdc=no
melunko@47
 21583
fi
melunko@47
 21584
rm -f conftest*
melunko@47
 21585
melunko@47
 21586
fi
melunko@47
 21587
melunko@47
 21588
if test $ac_cv_header_stdc = yes; then
melunko@47
 21589
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
melunko@47
 21590
  if test "$cross_compiling" = yes; then
melunko@47
 21591
  :
melunko@47
 21592
else
melunko@47
 21593
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 21594
/* confdefs.h.  */
melunko@47
 21595
_ACEOF
melunko@47
 21596
cat confdefs.h >>conftest.$ac_ext
melunko@47
 21597
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 21598
/* end confdefs.h.  */
melunko@47
 21599
#include <ctype.h>
melunko@47
 21600
#if ((' ' & 0x0FF) == 0x020)
melunko@47
 21601
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
melunko@47
 21602
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
melunko@47
 21603
#else
melunko@47
 21604
# define ISLOWER(c) \
melunko@47
 21605
		   (('a' <= (c) && (c) <= 'i') \
melunko@47
 21606
		     || ('j' <= (c) && (c) <= 'r') \
melunko@47
 21607
		     || ('s' <= (c) && (c) <= 'z'))
melunko@47
 21608
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
melunko@47
 21609
#endif
melunko@47
 21610
melunko@47
 21611
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
melunko@47
 21612
int
melunko@47
 21613
main ()
melunko@47
 21614
{
melunko@47
 21615
  int i;
melunko@47
 21616
  for (i = 0; i < 256; i++)
melunko@47
 21617
    if (XOR (islower (i), ISLOWER (i))
melunko@47
 21618
	|| toupper (i) != TOUPPER (i))
melunko@47
 21619
      exit(2);
melunko@47
 21620
  exit (0);
melunko@47
 21621
}
melunko@47
 21622
_ACEOF
melunko@47
 21623
rm -f conftest$ac_exeext
melunko@47
 21624
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
melunko@47
 21625
  (eval $ac_link) 2>&5
melunko@47
 21626
  ac_status=$?
melunko@47
 21627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21628
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
melunko@47
 21629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 21630
  (eval $ac_try) 2>&5
melunko@47
 21631
  ac_status=$?
melunko@47
 21632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21633
  (exit $ac_status); }; }; then
melunko@47
 21634
  :
melunko@47
 21635
else
melunko@47
 21636
  echo "$as_me: program exited with status $ac_status" >&5
melunko@47
 21637
echo "$as_me: failed program was:" >&5
melunko@47
 21638
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 21639
melunko@47
 21640
( exit $ac_status )
melunko@47
 21641
ac_cv_header_stdc=no
melunko@47
 21642
fi
melunko@47
 21643
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
melunko@47
 21644
fi
melunko@47
 21645
fi
melunko@47
 21646
fi
melunko@47
 21647
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
melunko@47
 21648
echo "${ECHO_T}$ac_cv_header_stdc" >&6
melunko@47
 21649
if test $ac_cv_header_stdc = yes; then
melunko@47
 21650
  
melunko@47
 21651
cat >>confdefs.h <<\_ACEOF
melunko@47
 21652
@%:@define STDC_HEADERS 1
melunko@47
 21653
_ACEOF
melunko@47
 21654
melunko@47
 21655
fi
melunko@47
 21656
melunko@47
 21657
echo "$as_me:$LINENO: checking for inline" >&5
melunko@47
 21658
echo $ECHO_N "checking for inline... $ECHO_C" >&6
melunko@47
 21659
if test "${ac_cv_c_inline+set}" = set; then
melunko@47
 21660
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 21661
else
melunko@47
 21662
  ac_cv_c_inline=no
melunko@47
 21663
for ac_kw in inline __inline__ __inline; do
melunko@47
 21664
  cat >conftest.$ac_ext <<_ACEOF
melunko@47
 21665
/* confdefs.h.  */
melunko@47
 21666
_ACEOF
melunko@47
 21667
cat confdefs.h >>conftest.$ac_ext
melunko@47
 21668
cat >>conftest.$ac_ext <<_ACEOF
melunko@47
 21669
/* end confdefs.h.  */
melunko@47
 21670
#ifndef __cplusplus
melunko@47
 21671
typedef int foo_t;
melunko@47
 21672
static $ac_kw foo_t static_foo () {return 0; }
melunko@47
 21673
$ac_kw foo_t foo () {return 0; }
melunko@47
 21674
#endif
melunko@47
 21675
melunko@47
 21676
_ACEOF
melunko@47
 21677
rm -f conftest.$ac_objext
melunko@47
 21678
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
melunko@47
 21679
  (eval $ac_compile) 2>conftest.er1
melunko@47
 21680
  ac_status=$?
melunko@47
 21681
  grep -v '^ *+' conftest.er1 >conftest.err
melunko@47
 21682
  rm -f conftest.er1
melunko@47
 21683
  cat conftest.err >&5
melunko@47
 21684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21685
  (exit $ac_status); } &&
melunko@47
 21686
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
melunko@47
 21687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 21688
  (eval $ac_try) 2>&5
melunko@47
 21689
  ac_status=$?
melunko@47
 21690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21691
  (exit $ac_status); }; } &&
melunko@47
 21692
	 { ac_try='test -s conftest.$ac_objext'
melunko@47
 21693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
melunko@47
 21694
  (eval $ac_try) 2>&5
melunko@47
 21695
  ac_status=$?
melunko@47
 21696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
melunko@47
 21697
  (exit $ac_status); }; }; then
melunko@47
 21698
  ac_cv_c_inline=$ac_kw; break
melunko@47
 21699
else
melunko@47
 21700
  echo "$as_me: failed program was:" >&5
melunko@47
 21701
sed 's/^/| /' conftest.$ac_ext >&5
melunko@47
 21702
melunko@47
 21703
fi
melunko@47
 21704
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
melunko@47
 21705
done
melunko@47
 21706
melunko@47
 21707
fi
melunko@47
 21708
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
melunko@47
 21709
echo "${ECHO_T}$ac_cv_c_inline" >&6
melunko@47
 21710
melunko@47
 21711
melunko@47
 21712
case $ac_cv_c_inline in
melunko@47
 21713
  inline | yes) ;;
melunko@47
 21714
  *)
melunko@47
 21715
    case $ac_cv_c_inline in
melunko@47
 21716
      no) ac_val=;;
melunko@47
 21717
      *) ac_val=$ac_cv_c_inline;;
melunko@47
 21718
    esac
melunko@47
 21719
    cat >>confdefs.h <<_ACEOF
melunko@47
 21720
#ifndef __cplusplus
melunko@47
 21721
#define inline $ac_val
melunko@47
 21722
#endif
melunko@47
 21723
_ACEOF
melunko@47
 21724
    ;;
melunko@47
 21725
esac
melunko@47
 21726
melunko@47
 21727
melunko@47
 21728
# Extract the first word of "pkg-config", so it can be a program name with args.
melunko@47
 21729
set dummy pkg-config; ac_word=$2
melunko@47
 21730
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
 21731
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
 21732
if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then
melunko@47
 21733
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 21734
else
melunko@47
 21735
  if test -n "$HAVE_PKGCONFIG"; then
melunko@47
 21736
  ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
melunko@47
 21737
else
melunko@47
 21738
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 21739
for as_dir in $PATH
melunko@47
 21740
do
melunko@47
 21741
  IFS=$as_save_IFS
melunko@47
 21742
  test -z "$as_dir" && as_dir=.
melunko@47
 21743
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
 21744
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
 21745
    ac_cv_prog_HAVE_PKGCONFIG="yes"
melunko@47
 21746
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
 21747
    break 2
melunko@47
 21748
  fi
melunko@47
 21749
done
melunko@47
 21750
done
melunko@47
 21751
melunko@47
 21752
  test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
melunko@47
 21753
fi
melunko@47
 21754
fi
melunko@47
 21755
HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
melunko@47
 21756
if test -n "$HAVE_PKGCONFIG"; then
melunko@47
 21757
  echo "$as_me:$LINENO: result: $HAVE_PKGCONFIG" >&5
melunko@47
 21758
echo "${ECHO_T}$HAVE_PKGCONFIG" >&6
melunko@47
 21759
else
melunko@47
 21760
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 21761
echo "${ECHO_T}no" >&6
melunko@47
 21762
fi
melunko@47
 21763
melunko@47
 21764
melunko@47
 21765
if test "x$HAVE_PKGCONFIG" = "xno"; then
melunko@47
 21766
  { { echo "$as_me:$LINENO: error: you need to have pkgconfig installed !" >&5
melunko@47
 21767
echo "$as_me: error: you need to have pkgconfig installed !" >&2;}
melunko@47
 21768
   { (exit 1); exit 1; }; }
melunko@47
 21769
fi
melunko@47
 21770
melunko@47
 21771
melunko@47
 21772
GST_REQUIRED=0.10.3
melunko@47
 21773
GST_MAJORMINOR=0.10
melunko@47
 21774
melunko@47
 21775
melunko@47
 21776
  succeeded=no
melunko@47
 21777
melunko@47
 21778
  if test -z "$PKG_CONFIG"; then
melunko@47
 21779
    # Extract the first word of "pkg-config", so it can be a program name with args.
melunko@47
 21780
set dummy pkg-config; ac_word=$2
melunko@47
 21781
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
 21782
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
 21783
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
melunko@47
 21784
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 21785
else
melunko@47
 21786
  case $PKG_CONFIG in
melunko@47
 21787
  [\\/]* | ?:[\\/]*)
melunko@47
 21788
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
melunko@47
 21789
  ;;
melunko@47
 21790
  *)
melunko@47
 21791
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 21792
for as_dir in $PATH
melunko@47
 21793
do
melunko@47
 21794
  IFS=$as_save_IFS
melunko@47
 21795
  test -z "$as_dir" && as_dir=.
melunko@47
 21796
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
 21797
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
 21798
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
melunko@47
 21799
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
 21800
    break 2
melunko@47
 21801
  fi
melunko@47
 21802
done
melunko@47
 21803
done
melunko@47
 21804
melunko@47
 21805
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
melunko@47
 21806
  ;;
melunko@47
 21807
esac
melunko@47
 21808
fi
melunko@47
 21809
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
melunko@47
 21810
melunko@47
 21811
if test -n "$PKG_CONFIG"; then
melunko@47
 21812
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
melunko@47
 21813
echo "${ECHO_T}$PKG_CONFIG" >&6
melunko@47
 21814
else
melunko@47
 21815
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 21816
echo "${ECHO_T}no" >&6
melunko@47
 21817
fi
melunko@47
 21818
melunko@47
 21819
  fi
melunko@47
 21820
melunko@47
 21821
  if test "$PKG_CONFIG" = "no" ; then
melunko@47
 21822
     echo "*** The pkg-config script could not be found. Make sure it is"
melunko@47
 21823
     echo "*** in your path, or set the PKG_CONFIG environment variable"
melunko@47
 21824
     echo "*** to the full path to pkg-config."
melunko@47
 21825
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
melunko@47
 21826
  else
melunko@47
 21827
     PKG_CONFIG_MIN_VERSION=0.9.0
melunko@47
 21828
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
melunko@47
 21829
        echo "$as_me:$LINENO: checking for \
melunko@47
 21830
  gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
melunko@47
 21831
echo $ECHO_N "checking for \
melunko@47
 21832
  gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
melunko@47
 21833
melunko@47
 21834
        if $PKG_CONFIG --exists "\
melunko@47
 21835
  gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
melunko@47
 21836
            echo "$as_me:$LINENO: result: yes" >&5
melunko@47
 21837
echo "${ECHO_T}yes" >&6
melunko@47
 21838
            succeeded=yes
melunko@47
 21839
melunko@47
 21840
            echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
melunko@47
 21841
echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
melunko@47
 21842
            GST_CFLAGS=`$PKG_CONFIG --cflags "\
melunko@47
 21843
  gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
melunko@47
 21844
            echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
melunko@47
 21845
echo "${ECHO_T}$GST_CFLAGS" >&6
melunko@47
 21846
melunko@47
 21847
            echo "$as_me:$LINENO: checking GST_LIBS" >&5
melunko@47
 21848
echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
melunko@47
 21849
            GST_LIBS=`$PKG_CONFIG --libs "\
melunko@47
 21850
  gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
melunko@47
 21851
            echo "$as_me:$LINENO: result: $GST_LIBS" >&5
melunko@47
 21852
echo "${ECHO_T}$GST_LIBS" >&6
melunko@47
 21853
        else
melunko@47
 21854
            GST_CFLAGS=""
melunko@47
 21855
            GST_LIBS=""
melunko@47
 21856
            ## If we have a custom action on failure, don't print errors, but 
melunko@47
 21857
            ## do set a variable so people can do so.
melunko@47
 21858
            GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
melunko@47
 21859
  gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
melunko@47
 21860
            
melunko@47
 21861
        fi
melunko@47
 21862
melunko@47
 21863
        
melunko@47
 21864
        
melunko@47
 21865
     else
melunko@47
 21866
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
melunko@47
 21867
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
melunko@47
 21868
     fi
melunko@47
 21869
  fi
melunko@47
 21870
melunko@47
 21871
  if test $succeeded = yes; then
melunko@47
 21872
     HAVE_GST=yes
melunko@47
 21873
  else
melunko@47
 21874
     HAVE_GST=no
melunko@47
 21875
  fi
melunko@47
 21876
melunko@47
 21877
melunko@47
 21878
if test "x$HAVE_GST" = "xno"; then
melunko@47
 21879
  { { echo "$as_me:$LINENO: error: you need gstreamer development packages installed !" >&5
melunko@47
 21880
echo "$as_me: error: you need gstreamer development packages installed !" >&2;}
melunko@47
 21881
   { (exit 1); exit 1; }; }
melunko@47
 21882
fi
melunko@47
 21883
melunko@47
 21884
if test "x$USE_DEBUG" = xyes; then
melunko@47
 21885
  GST_CFLAGS="$GST_CFLAGS -g"
melunko@47
 21886
fi
melunko@47
 21887
melunko@47
 21888
melunko@47
 21889
melunko@47
 21890
melunko@47
 21891
melunko@47
 21892
melunko@47
 21893
melunko@47
 21894
  succeeded=no
melunko@47
 21895
melunko@47
 21896
  if test -z "$PKG_CONFIG"; then
melunko@47
 21897
    # Extract the first word of "pkg-config", so it can be a program name with args.
melunko@47
 21898
set dummy pkg-config; ac_word=$2
melunko@47
 21899
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
 21900
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
 21901
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
melunko@47
 21902
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 21903
else
melunko@47
 21904
  case $PKG_CONFIG in
melunko@47
 21905
  [\\/]* | ?:[\\/]*)
melunko@47
 21906
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
melunko@47
 21907
  ;;
melunko@47
 21908
  *)
melunko@47
 21909
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 21910
for as_dir in $PATH
melunko@47
 21911
do
melunko@47
 21912
  IFS=$as_save_IFS
melunko@47
 21913
  test -z "$as_dir" && as_dir=.
melunko@47
 21914
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
 21915
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
 21916
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
melunko@47
 21917
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
 21918
    break 2
melunko@47
 21919
  fi
melunko@47
 21920
done
melunko@47
 21921
done
melunko@47
 21922
melunko@47
 21923
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
melunko@47
 21924
  ;;
melunko@47
 21925
esac
melunko@47
 21926
fi
melunko@47
 21927
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
melunko@47
 21928
melunko@47
 21929
if test -n "$PKG_CONFIG"; then
melunko@47
 21930
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
melunko@47
 21931
echo "${ECHO_T}$PKG_CONFIG" >&6
melunko@47
 21932
else
melunko@47
 21933
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 21934
echo "${ECHO_T}no" >&6
melunko@47
 21935
fi
melunko@47
 21936
melunko@47
 21937
  fi
melunko@47
 21938
melunko@47
 21939
  if test "$PKG_CONFIG" = "no" ; then
melunko@47
 21940
     echo "*** The pkg-config script could not be found. Make sure it is"
melunko@47
 21941
     echo "*** in your path, or set the PKG_CONFIG environment variable"
melunko@47
 21942
     echo "*** to the full path to pkg-config."
melunko@47
 21943
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
melunko@47
 21944
  else
melunko@47
 21945
     PKG_CONFIG_MIN_VERSION=0.9.0
melunko@47
 21946
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
melunko@47
 21947
        echo "$as_me:$LINENO: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
melunko@47
 21948
echo $ECHO_N "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
melunko@47
 21949
melunko@47
 21950
        if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
melunko@47
 21951
            echo "$as_me:$LINENO: result: yes" >&5
melunko@47
 21952
echo "${ECHO_T}yes" >&6
melunko@47
 21953
            succeeded=yes
melunko@47
 21954
melunko@47
 21955
            echo "$as_me:$LINENO: checking GST_BASE_CFLAGS" >&5
melunko@47
 21956
echo $ECHO_N "checking GST_BASE_CFLAGS... $ECHO_C" >&6
melunko@47
 21957
            GST_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
melunko@47
 21958
            echo "$as_me:$LINENO: result: $GST_BASE_CFLAGS" >&5
melunko@47
 21959
echo "${ECHO_T}$GST_BASE_CFLAGS" >&6
melunko@47
 21960
melunko@47
 21961
            echo "$as_me:$LINENO: checking GST_BASE_LIBS" >&5
melunko@47
 21962
echo $ECHO_N "checking GST_BASE_LIBS... $ECHO_C" >&6
melunko@47
 21963
            GST_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
melunko@47
 21964
            echo "$as_me:$LINENO: result: $GST_BASE_LIBS" >&5
melunko@47
 21965
echo "${ECHO_T}$GST_BASE_LIBS" >&6
melunko@47
 21966
        else
melunko@47
 21967
            GST_BASE_CFLAGS=""
melunko@47
 21968
            GST_BASE_LIBS=""
melunko@47
 21969
            ## If we have a custom action on failure, don't print errors, but 
melunko@47
 21970
            ## do set a variable so people can do so.
melunko@47
 21971
            GST_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
melunko@47
 21972
            
melunko@47
 21973
        fi
melunko@47
 21974
melunko@47
 21975
        
melunko@47
 21976
        
melunko@47
 21977
     else
melunko@47
 21978
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
melunko@47
 21979
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
melunko@47
 21980
     fi
melunko@47
 21981
  fi
melunko@47
 21982
melunko@47
 21983
  if test $succeeded = yes; then
melunko@47
 21984
     HAVE_GST_BASE="yes"
melunko@47
 21985
  else
melunko@47
 21986
     HAVE_GST_BASE="no"
melunko@47
 21987
  fi
melunko@47
 21988
melunko@47
 21989
melunko@47
 21990
if test "x$HAVE_GST_BASE" = "xno"; then
melunko@47
 21991
  { { echo "$as_me:$LINENO: error: no GStreamer Base Libs found" >&5
melunko@47
 21992
echo "$as_me: error: no GStreamer Base Libs found" >&2;}
melunko@47
 21993
   { (exit 1); exit 1; }; }
melunko@47
 21994
fi
melunko@47
 21995
melunko@47
 21996
melunko@47
 21997
melunko@47
 21998
melunko@47
 21999
melunko@47
 22000
  succeeded=no
melunko@47
 22001
melunko@47
 22002
  if test -z "$PKG_CONFIG"; then
melunko@47
 22003
    # Extract the first word of "pkg-config", so it can be a program name with args.
melunko@47
 22004
set dummy pkg-config; ac_word=$2
melunko@47
 22005
echo "$as_me:$LINENO: checking for $ac_word" >&5
melunko@47
 22006
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
melunko@47
 22007
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
melunko@47
 22008
  echo $ECHO_N "(cached) $ECHO_C" >&6
melunko@47
 22009
else
melunko@47
 22010
  case $PKG_CONFIG in
melunko@47
 22011
  [\\/]* | ?:[\\/]*)
melunko@47
 22012
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
melunko@47
 22013
  ;;
melunko@47
 22014
  *)
melunko@47
 22015
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 22016
for as_dir in $PATH
melunko@47
 22017
do
melunko@47
 22018
  IFS=$as_save_IFS
melunko@47
 22019
  test -z "$as_dir" && as_dir=.
melunko@47
 22020
  for ac_exec_ext in '' $ac_executable_extensions; do
melunko@47
 22021
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
melunko@47
 22022
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
melunko@47
 22023
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
melunko@47
 22024
    break 2
melunko@47
 22025
  fi
melunko@47
 22026
done
melunko@47
 22027
done
melunko@47
 22028
melunko@47
 22029
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
melunko@47
 22030
  ;;
melunko@47
 22031
esac
melunko@47
 22032
fi
melunko@47
 22033
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
melunko@47
 22034
melunko@47
 22035
if test -n "$PKG_CONFIG"; then
melunko@47
 22036
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
melunko@47
 22037
echo "${ECHO_T}$PKG_CONFIG" >&6
melunko@47
 22038
else
melunko@47
 22039
  echo "$as_me:$LINENO: result: no" >&5
melunko@47
 22040
echo "${ECHO_T}no" >&6
melunko@47
 22041
fi
melunko@47
 22042
melunko@47
 22043
  fi
melunko@47
 22044
melunko@47
 22045
  if test "$PKG_CONFIG" = "no" ; then
melunko@47
 22046
     echo "*** The pkg-config script could not be found. Make sure it is"
melunko@47
 22047
     echo "*** in your path, or set the PKG_CONFIG environment variable"
melunko@47
 22048
     echo "*** to the full path to pkg-config."
melunko@47
 22049
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
melunko@47
 22050
  else
melunko@47
 22051
     PKG_CONFIG_MIN_VERSION=0.9.0
melunko@47
 22052
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
melunko@47
 22053
        echo "$as_me:$LINENO: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
melunko@47
 22054
echo $ECHO_N "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
melunko@47
 22055
melunko@47
 22056
        if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
melunko@47
 22057
            echo "$as_me:$LINENO: result: yes" >&5
melunko@47
 22058
echo "${ECHO_T}yes" >&6
melunko@47
 22059
            succeeded=yes
melunko@47
 22060
melunko@47
 22061
            echo "$as_me:$LINENO: checking GST_PLUGINS_BASE_CFLAGS" >&5
melunko@47
 22062
echo $ECHO_N "checking GST_PLUGINS_BASE_CFLAGS... $ECHO_C" >&6
melunko@47
 22063
            GST_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
melunko@47
 22064
            echo "$as_me:$LINENO: result: $GST_PLUGINS_BASE_CFLAGS" >&5
melunko@47
 22065
echo "${ECHO_T}$GST_PLUGINS_BASE_CFLAGS" >&6
melunko@47
 22066
melunko@47
 22067
            echo "$as_me:$LINENO: checking GST_PLUGINS_BASE_LIBS" >&5
melunko@47
 22068
echo $ECHO_N "checking GST_PLUGINS_BASE_LIBS... $ECHO_C" >&6
melunko@47
 22069
            GST_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
melunko@47
 22070
            echo "$as_me:$LINENO: result: $GST_PLUGINS_BASE_LIBS" >&5
melunko@47
 22071
echo "${ECHO_T}$GST_PLUGINS_BASE_LIBS" >&6
melunko@47
 22072
        else
melunko@47
 22073
            GST_PLUGINS_BASE_CFLAGS=""
melunko@47
 22074
            GST_PLUGINS_BASE_LIBS=""
melunko@47
 22075
            ## If we have a custom action on failure, don't print errors, but 
melunko@47
 22076
            ## do set a variable so people can do so.
melunko@47
 22077
            GST_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
melunko@47
 22078
            
melunko@47
 22079
        fi
melunko@47
 22080
melunko@47
 22081
        
melunko@47
 22082
        
melunko@47
 22083
     else
melunko@47
 22084
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
melunko@47
 22085
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
melunko@47
 22086
     fi
melunko@47
 22087
  fi
melunko@47
 22088
melunko@47
 22089
  if test $succeeded = yes; then
melunko@47
 22090
     HAVE_GST_PLUGINS="yes"
melunko@47
 22091
  else
melunko@47
 22092
     HAVE_GST_PLUGINS="no"
melunko@47
 22093
  fi
melunko@47
 22094
melunko@47
 22095
melunko@47
 22096
if test "x$HAVE_GST_PLUGINS" = "xno"; then
melunko@47
 22097
  { { echo "$as_me:$LINENO: error: no GStreamer Plugins Libs found" >&5
melunko@47
 22098
echo "$as_me: error: no GStreamer Plugins Libs found" >&2;}
melunko@47
 22099
   { (exit 1); exit 1; }; }
melunko@47
 22100
fi
melunko@47
 22101
melunko@47
 22102
melunko@47
 22103
melunko@47
 22104
melunko@47
 22105
plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
melunko@47
 22106
melunko@47
 22107
melunko@47
 22108
GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex _*\(gst_\|Gst\|GST_\).*'
melunko@47
 22109
melunko@47
 22110
melunko@47
 22111
                              ac_config_files="$ac_config_files Makefile src/Makefile m4/Makefile"
melunko@47
 22112
cat >confcache <<\_ACEOF
melunko@47
 22113
# This file is a shell script that caches the results of configure
melunko@47
 22114
# tests run on this system so they can be shared between configure
melunko@47
 22115
# scripts and configure runs, see configure's option --config-cache.
melunko@47
 22116
# It is not useful on other systems.  If it contains results you don't
melunko@47
 22117
# want to keep, you may remove or edit it.
melunko@47
 22118
#
melunko@47
 22119
# config.status only pays attention to the cache file if you give it
melunko@47
 22120
# the --recheck option to rerun configure.
melunko@47
 22121
#
melunko@47
 22122
# `ac_cv_env_foo' variables (set or unset) will be overridden when
melunko@47
 22123
# loading this file, other *unset* `ac_cv_foo' will be assigned the
melunko@47
 22124
# following values.
melunko@47
 22125
melunko@47
 22126
_ACEOF
melunko@47
 22127
melunko@47
 22128
# The following way of writing the cache mishandles newlines in values,
melunko@47
 22129
# but we know of no workaround that is simple, portable, and efficient.
melunko@47
 22130
# So, don't put newlines in cache variables' values.
melunko@47
 22131
# Ultrix sh set writes to stderr and can't be redirected directly,
melunko@47
 22132
# and sets the high bit in the cache file unless we assign to the vars.
melunko@47
 22133
{
melunko@47
 22134
  (set) 2>&1 |
melunko@47
 22135
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
melunko@47
 22136
    *ac_space=\ *)
melunko@47
 22137
      # `set' does not quote correctly, so add quotes (double-quote
melunko@47
 22138
      # substitution turns \\\\ into \\, and sed turns \\ into \).
melunko@47
 22139
      sed -n \
melunko@47
 22140
	"s/'/'\\\\''/g;
melunko@47
 22141
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
melunko@47
 22142
      ;;
melunko@47
 22143
    *)
melunko@47
 22144
      # `set' quotes correctly as required by POSIX, so do not add quotes.
melunko@47
 22145
      sed -n \
melunko@47
 22146
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
melunko@47
 22147
      ;;
melunko@47
 22148
    esac;
melunko@47
 22149
} |
melunko@47
 22150
  sed '
melunko@47
 22151
     t clear
melunko@47
 22152
     : clear
melunko@47
 22153
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
melunko@47
 22154
     t end
melunko@47
 22155
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
melunko@47
 22156
     : end' >>confcache
melunko@47
 22157
if diff $cache_file confcache >/dev/null 2>&1; then :; else
melunko@47
 22158
  if test -w $cache_file; then
melunko@47
 22159
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
melunko@47
 22160
    cat confcache >$cache_file
melunko@47
 22161
  else
melunko@47
 22162
    echo "not updating unwritable cache $cache_file"
melunko@47
 22163
  fi
melunko@47
 22164
fi
melunko@47
 22165
rm -f confcache
melunko@47
 22166
melunko@47
 22167
test "x$prefix" = xNONE && prefix=$ac_default_prefix
melunko@47
 22168
# Let make expand exec_prefix.
melunko@47
 22169
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
melunko@47
 22170
melunko@47
 22171
# VPATH may cause trouble with some makes, so we remove $(srcdir),
melunko@47
 22172
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
melunko@47
 22173
# trailing colons and then remove the whole line if VPATH becomes empty
melunko@47
 22174
# (actually we leave an empty line to preserve line numbers).
melunko@47
 22175
if test "x$srcdir" = x.; then
melunko@47
 22176
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
melunko@47
 22177
s/:*\$(srcdir):*/:/;
melunko@47
 22178
s/:*\${srcdir}:*/:/;
melunko@47
 22179
s/:*@srcdir@:*/:/;
melunko@47
 22180
s/^\([^=]*=[	 ]*\):*/\1/;
melunko@47
 22181
s/:*$//;
melunko@47
 22182
s/^[^=]*=[	 ]*$//;
melunko@47
 22183
}'
melunko@47
 22184
fi
melunko@47
 22185
melunko@47
 22186
DEFS=-DHAVE_CONFIG_H
melunko@47
 22187
melunko@47
 22188
ac_libobjs=
melunko@47
 22189
ac_ltlibobjs=
melunko@47
 22190
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
melunko@47
 22191
  # 1. Remove the extension, and $U if already installed.
melunko@47
 22192
  ac_i=`echo "$ac_i" |
melunko@47
 22193
	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
melunko@47
 22194
  # 2. Add them.
melunko@47
 22195
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
melunko@47
 22196
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
melunko@47
 22197
done
melunko@47
 22198
LIB@&t@OBJS=$ac_libobjs
melunko@47
 22199
melunko@47
 22200
LTLIBOBJS=$ac_ltlibobjs
melunko@47
 22201
melunko@47
 22202
melunko@47
 22203
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
melunko@47
 22204
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
melunko@47
 22205
Usually this means the macro was only invoked conditionally." >&5
melunko@47
 22206
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
melunko@47
 22207
Usually this means the macro was only invoked conditionally." >&2;}
melunko@47
 22208
   { (exit 1); exit 1; }; }
melunko@47
 22209
fi
melunko@47
 22210
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
melunko@47
 22211
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
melunko@47
 22212
Usually this means the macro was only invoked conditionally." >&5
melunko@47
 22213
echo "$as_me: error: conditional \"AMDEP\" was never defined.
melunko@47
 22214
Usually this means the macro was only invoked conditionally." >&2;}
melunko@47
 22215
   { (exit 1); exit 1; }; }
melunko@47
 22216
fi
melunko@47
 22217
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
melunko@47
 22218
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
melunko@47
 22219
Usually this means the macro was only invoked conditionally." >&5
melunko@47
 22220
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
melunko@47
 22221
Usually this means the macro was only invoked conditionally." >&2;}
melunko@47
 22222
   { (exit 1); exit 1; }; }
melunko@47
 22223
fi
melunko@47
 22224
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
melunko@47
 22225
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
melunko@47
 22226
Usually this means the macro was only invoked conditionally." >&5
melunko@47
 22227
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
melunko@47
 22228
Usually this means the macro was only invoked conditionally." >&2;}
melunko@47
 22229
   { (exit 1); exit 1; }; }
melunko@47
 22230
fi
melunko@47
 22231
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
melunko@47
 22232
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
melunko@47
 22233
Usually this means the macro was only invoked conditionally." >&5
melunko@47
 22234
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
melunko@47
 22235
Usually this means the macro was only invoked conditionally." >&2;}
melunko@47
 22236
   { (exit 1); exit 1; }; }
melunko@47
 22237
fi
melunko@47
 22238
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
melunko@47
 22239
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
melunko@47
 22240
Usually this means the macro was only invoked conditionally." >&5
melunko@47
 22241
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
melunko@47
 22242
Usually this means the macro was only invoked conditionally." >&2;}
melunko@47
 22243
   { (exit 1); exit 1; }; }
melunko@47
 22244
fi
melunko@47
 22245
melunko@47
 22246
: ${CONFIG_STATUS=./config.status}
melunko@47
 22247
ac_clean_files_save=$ac_clean_files
melunko@47
 22248
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
melunko@47
 22249
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
melunko@47
 22250
echo "$as_me: creating $CONFIG_STATUS" >&6;}
melunko@47
 22251
cat >$CONFIG_STATUS <<_ACEOF
melunko@47
 22252
#! $SHELL
melunko@47
 22253
# Generated by $as_me.
melunko@47
 22254
# Run this file to recreate the current configuration.
melunko@47
 22255
# Compiler output produced by configure, useful for debugging
melunko@47
 22256
# configure, is in config.log if it exists.
melunko@47
 22257
melunko@47
 22258
debug=false
melunko@47
 22259
ac_cs_recheck=false
melunko@47
 22260
ac_cs_silent=false
melunko@47
 22261
SHELL=\${CONFIG_SHELL-$SHELL}
melunko@47
 22262
_ACEOF
melunko@47
 22263
melunko@47
 22264
cat >>$CONFIG_STATUS <<\_ACEOF
melunko@47
 22265
## --------------------- ##
melunko@47
 22266
## M4sh Initialization.  ##
melunko@47
 22267
## --------------------- ##
melunko@47
 22268
melunko@47
 22269
# Be Bourne compatible
melunko@47
 22270
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
melunko@47
 22271
  emulate sh
melunko@47
 22272
  NULLCMD=:
melunko@47
 22273
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
melunko@47
 22274
  # is contrary to our usage.  Disable this feature.
melunko@47
 22275
  alias -g '${1+"$@"}'='"$@"'
melunko@47
 22276
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
melunko@47
 22277
  set -o posix
melunko@47
 22278
fi
melunko@47
 22279
DUALCASE=1; export DUALCASE # for MKS sh
melunko@47
 22280
melunko@47
 22281
# Support unset when possible.
melunko@47
 22282
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
melunko@47
 22283
  as_unset=unset
melunko@47
 22284
else
melunko@47
 22285
  as_unset=false
melunko@47
 22286
fi
melunko@47
 22287
melunko@47
 22288
melunko@47
 22289
# Work around bugs in pre-3.0 UWIN ksh.
melunko@47
 22290
$as_unset ENV MAIL MAILPATH
melunko@47
 22291
PS1='$ '
melunko@47
 22292
PS2='> '
melunko@47
 22293
PS4='+ '
melunko@47
 22294
melunko@47
 22295
# NLS nuisances.
melunko@47
 22296
for as_var in \
melunko@47
 22297
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
melunko@47
 22298
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
melunko@47
 22299
  LC_TELEPHONE LC_TIME
melunko@47
 22300
do
melunko@47
 22301
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
melunko@47
 22302
    eval $as_var=C; export $as_var
melunko@47
 22303
  else
melunko@47
 22304
    $as_unset $as_var
melunko@47
 22305
  fi
melunko@47
 22306
done
melunko@47
 22307
melunko@47
 22308
# Required to use basename.
melunko@47
 22309
if expr a : '\(a\)' >/dev/null 2>&1; then
melunko@47
 22310
  as_expr=expr
melunko@47
 22311
else
melunko@47
 22312
  as_expr=false
melunko@47
 22313
fi
melunko@47
 22314
melunko@47
 22315
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
melunko@47
 22316
  as_basename=basename
melunko@47
 22317
else
melunko@47
 22318
  as_basename=false
melunko@47
 22319
fi
melunko@47
 22320
melunko@47
 22321
melunko@47
 22322
# Name of the executable.
melunko@47
 22323
as_me=`$as_basename "$0" ||
melunko@47
 22324
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
melunko@47
 22325
	 X"$0" : 'X\(//\)$' \| \
melunko@47
 22326
	 X"$0" : 'X\(/\)$' \| \
melunko@47
 22327
	 .     : '\(.\)' 2>/dev/null ||
melunko@47
 22328
echo X/"$0" |
melunko@47
 22329
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
melunko@47
 22330
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
melunko@47
 22331
  	  /^X\/\(\/\).*/{ s//\1/; q; }
melunko@47
 22332
  	  s/.*/./; q'`
melunko@47
 22333
melunko@47
 22334
melunko@47
 22335
# PATH needs CR, and LINENO needs CR and PATH.
melunko@47
 22336
# Avoid depending upon Character Ranges.
melunko@47
 22337
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
melunko@47
 22338
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
melunko@47
 22339
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
melunko@47
 22340
as_cr_digits='0123456789'
melunko@47
 22341
as_cr_alnum=$as_cr_Letters$as_cr_digits
melunko@47
 22342
melunko@47
 22343
# The user is always right.
melunko@47
 22344
if test "${PATH_SEPARATOR+set}" != set; then
melunko@47
 22345
  echo "#! /bin/sh" >conf$$.sh
melunko@47
 22346
  echo  "exit 0"   >>conf$$.sh
melunko@47
 22347
  chmod +x conf$$.sh
melunko@47
 22348
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
melunko@47
 22349
    PATH_SEPARATOR=';'
melunko@47
 22350
  else
melunko@47
 22351
    PATH_SEPARATOR=:
melunko@47
 22352
  fi
melunko@47
 22353
  rm -f conf$$.sh
melunko@47
 22354
fi
melunko@47
 22355
melunko@47
 22356
melunko@47
 22357
  as_lineno_1=$LINENO
melunko@47
 22358
  as_lineno_2=$LINENO
melunko@47
 22359
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
melunko@47
 22360
  test "x$as_lineno_1" != "x$as_lineno_2" &&
melunko@47
 22361
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
melunko@47
 22362
  # Find who we are.  Look in the path if we contain no path at all
melunko@47
 22363
  # relative or not.
melunko@47
 22364
  case $0 in
melunko@47
 22365
    *[\\/]* ) as_myself=$0 ;;
melunko@47
 22366
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 22367
for as_dir in $PATH
melunko@47
 22368
do
melunko@47
 22369
  IFS=$as_save_IFS
melunko@47
 22370
  test -z "$as_dir" && as_dir=.
melunko@47
 22371
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
melunko@47
 22372
done
melunko@47
 22373
melunko@47
 22374
       ;;
melunko@47
 22375
  esac
melunko@47
 22376
  # We did not find ourselves, most probably we were run as `sh COMMAND'
melunko@47
 22377
  # in which case we are not to be found in the path.
melunko@47
 22378
  if test "x$as_myself" = x; then
melunko@47
 22379
    as_myself=$0
melunko@47
 22380
  fi
melunko@47
 22381
  if test ! -f "$as_myself"; then
melunko@47
 22382
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
melunko@47
 22383
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
melunko@47
 22384
   { (exit 1); exit 1; }; }
melunko@47
 22385
  fi
melunko@47
 22386
  case $CONFIG_SHELL in
melunko@47
 22387
  '')
melunko@47
 22388
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
melunko@47
 22389
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
melunko@47
 22390
do
melunko@47
 22391
  IFS=$as_save_IFS
melunko@47
 22392
  test -z "$as_dir" && as_dir=.
melunko@47
 22393
  for as_base in sh bash ksh sh5; do
melunko@47
 22394
	 case $as_dir in
melunko@47
 22395
	 /*)
melunko@47
 22396
	   if ("$as_dir/$as_base" -c '
melunko@47
 22397
  as_lineno_1=$LINENO
melunko@47
 22398
  as_lineno_2=$LINENO
melunko@47
 22399
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
melunko@47
 22400
  test "x$as_lineno_1" != "x$as_lineno_2" &&
melunko@47
 22401
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
melunko@47
 22402
	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
melunko@47
 22403
	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
melunko@47
 22404
	     CONFIG_SHELL=$as_dir/$as_base
melunko@47
 22405
	     export CONFIG_SHELL
melunko@47
 22406
	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
melunko@47
 22407
	   fi;;
melunko@47
 22408
	 esac
melunko@47
 22409
       done
melunko@47
 22410
done
melunko@47
 22411
;;
melunko@47
 22412
  esac
melunko@47
 22413
melunko@47
 22414
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
melunko@47
 22415
  # uniformly replaced by the line number.  The first 'sed' inserts a
melunko@47
 22416
  # line-number line before each line; the second 'sed' does the real
melunko@47
 22417
  # work.  The second script uses 'N' to pair each line-number line
melunko@47
 22418
  # with the numbered line, and appends trailing '-' during
melunko@47
 22419
  # substitution so that $LINENO is not a special case at line end.
melunko@47
 22420
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
melunko@47
 22421
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
melunko@47
 22422
  sed '=' <$as_myself |
melunko@47
 22423
    sed '
melunko@47
 22424
      N
melunko@47
 22425
      s,$,-,
melunko@47
 22426
      : loop
melunko@47
 22427
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
melunko@47
 22428
      t loop
melunko@47
 22429
      s,-$,,
melunko@47
 22430
      s,^['$as_cr_digits']*\n,,
melunko@47
 22431
    ' >$as_me.lineno &&
melunko@47
 22432
  chmod +x $as_me.lineno ||
melunko@47
 22433
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
melunko@47
 22434
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
melunko@47
 22435
   { (exit 1); exit 1; }; }
melunko@47
 22436
melunko@47
 22437
  # Don't try to exec as it changes $[0], causing all sort of problems
melunko@47
 22438
  # (the dirname of $[0] is not the place where we might find the
melunko@47
 22439
  # original and so on.  Autoconf is especially sensible to this).
melunko@47
 22440
  . ./$as_me.lineno
melunko@47
 22441
  # Exit status is that of the last command.
melunko@47
 22442
  exit
melunko@47
 22443
}
melunko@47
 22444
melunko@47
 22445
melunko@47
 22446
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
melunko@47
 22447
  *c*,-n*) ECHO_N= ECHO_C='
melunko@47
 22448
' ECHO_T='	' ;;
melunko@47
 22449
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
melunko@47
 22450
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
melunko@47
 22451
esac
melunko@47
 22452
melunko@47
 22453
if expr a : '\(a\)' >/dev/null 2>&1; then
melunko@47
 22454
  as_expr=expr
melunko@47
 22455
else
melunko@47
 22456
  as_expr=false
melunko@47
 22457
fi
melunko@47
 22458
melunko@47
 22459
rm -f conf$$ conf$$.exe conf$$.file
melunko@47
 22460
echo >conf$$.file
melunko@47
 22461
if ln -s conf$$.file conf$$ 2>/dev/null; then
melunko@47
 22462
  # We could just check for DJGPP; but this test a) works b) is more generic
melunko@47
 22463
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
melunko@47
 22464
  if test -f conf$$.exe; then
melunko@47
 22465
    # Don't use ln at all; we don't have any links
melunko@47
 22466
    as_ln_s='cp -p'
melunko@47
 22467
  else
melunko@47
 22468
    as_ln_s='ln -s'
melunko@47
 22469
  fi
melunko@47
 22470
elif ln conf$$.file conf$$ 2>/dev/null; then
melunko@47
 22471
  as_ln_s=ln
melunko@47
 22472
else
melunko@47
 22473
  as_ln_s='cp -p'
melunko@47
 22474
fi
melunko@47
 22475
rm -f conf$$ conf$$.exe conf$$.file
melunko@47
 22476
melunko@47
 22477
if mkdir -p . 2>/dev/null; then
melunko@47
 22478
  as_mkdir_p=:
melunko@47
 22479
else
melunko@47
 22480
  test -d ./-p && rmdir ./-p
melunko@47
 22481
  as_mkdir_p=false
melunko@47
 22482
fi
melunko@47
 22483
melunko@47
 22484
as_executable_p="test -f"
melunko@47
 22485
melunko@47
 22486
# Sed expression to map a string onto a valid CPP name.
melunko@47
 22487
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
melunko@47
 22488
melunko@47
 22489
# Sed expression to map a string onto a valid variable name.
melunko@47
 22490
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
melunko@47
 22491
melunko@47
 22492
melunko@47
 22493
# IFS
melunko@47
 22494
# We need space, tab and new line, in precisely that order.
melunko@47
 22495
as_nl='
melunko@47
 22496
'
melunko@47
 22497
IFS=" 	$as_nl"
melunko@47
 22498
melunko@47
 22499
# CDPATH.
melunko@47
 22500
$as_unset CDPATH
melunko@47
 22501
melunko@47
 22502
exec 6>&1
melunko@47
 22503
melunko@47
 22504
# Open the log real soon, to keep \$[0] and so on meaningful, and to
melunko@47
 22505
# report actual input values of CONFIG_FILES etc. instead of their
melunko@47
 22506
# values after options handling.  Logging --version etc. is OK.
melunko@47
 22507
exec 5>>config.log
melunko@47
 22508
{
melunko@47
 22509
  echo
melunko@47
 22510
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
melunko@47
 22511
@%:@@%:@ Running $as_me. @%:@@%:@
melunko@47
 22512
_ASBOX
melunko@47
 22513
} >&5
melunko@47
 22514
cat >&5 <<_CSEOF
melunko@47
 22515
melunko@47
 22516
This file was extended by $as_me, which was
melunko@47
 22517
generated by GNU Autoconf 2.59.  Invocation command line was
melunko@47
 22518
melunko@47
 22519
  CONFIG_FILES    = $CONFIG_FILES
melunko@47
 22520
  CONFIG_HEADERS  = $CONFIG_HEADERS
melunko@47
 22521
  CONFIG_LINKS    = $CONFIG_LINKS
melunko@47
 22522
  CONFIG_COMMANDS = $CONFIG_COMMANDS
melunko@47
 22523
  $ $0 $@
melunko@47
 22524
melunko@47
 22525
_CSEOF
melunko@47
 22526
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
melunko@47
 22527
echo >&5
melunko@47
 22528
_ACEOF
melunko@47
 22529
melunko@47
 22530
# Files that config.status was made for.
melunko@47
 22531
if test -n "$ac_config_files"; then
melunko@47
 22532
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
melunko@47
 22533
fi
melunko@47
 22534
melunko@47
 22535
if test -n "$ac_config_headers"; then
melunko@47
 22536
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
melunko@47
 22537
fi
melunko@47
 22538
melunko@47
 22539
if test -n "$ac_config_links"; then
melunko@47
 22540
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
melunko@47
 22541
fi
melunko@47
 22542
melunko@47
 22543
if test -n "$ac_config_commands"; then
melunko@47
 22544
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
melunko@47
 22545
fi
melunko@47
 22546
melunko@47
 22547
cat >>$CONFIG_STATUS <<\_ACEOF
melunko@47
 22548
melunko@47
 22549
ac_cs_usage="\
melunko@47
 22550
\`$as_me' instantiates files from templates according to the
melunko@47
 22551
current configuration.
melunko@47
 22552
melunko@47
 22553
Usage: $0 [OPTIONS] [FILE]...
melunko@47
 22554
melunko@47
 22555
  -h, --help       print this help, then exit
melunko@47
 22556
  -V, --version    print version number, then exit
melunko@47
 22557
  -q, --quiet      do not print progress messages
melunko@47
 22558
  -d, --debug      don't remove temporary files
melunko@47
 22559
      --recheck    update $as_me by reconfiguring in the same conditions
melunko@47
 22560
  --file=FILE[:TEMPLATE]
melunko@47
 22561
		   instantiate the configuration file FILE
melunko@47
 22562
  --header=FILE[:TEMPLATE]
melunko@47
 22563
		   instantiate the configuration header FILE
melunko@47
 22564
melunko@47
 22565
Configuration files:
melunko@47
 22566
$config_files
melunko@47
 22567
melunko@47
 22568
Configuration headers:
melunko@47
 22569
$config_headers
melunko@47
 22570
melunko@47
 22571
Configuration commands:
melunko@47
 22572
$config_commands
melunko@47
 22573
melunko@47
 22574
Report bugs to <bug-autoconf@gnu.org>."
melunko@47
 22575
_ACEOF
melunko@47
 22576
melunko@47
 22577
cat >>$CONFIG_STATUS <<_ACEOF
melunko@47
 22578
ac_cs_version="\\
melunko@47
 22579
config.status
melunko@47
 22580
configured by $0, generated by GNU Autoconf 2.59,
melunko@47
 22581
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
melunko@47
 22582
melunko@47
 22583
Copyright (C) 2003 Free Software Foundation, Inc.
melunko@47
 22584
This config.status script is free software; the Free Software Foundation
melunko@47
 22585
gives unlimited permission to copy, distribute and modify it."
melunko@47
 22586
srcdir=$srcdir
melunko@47
 22587
INSTALL="$INSTALL"
melunko@47
 22588
_ACEOF
melunko@47
 22589
melunko@47
 22590
cat >>$CONFIG_STATUS <<\_ACEOF
melunko@47
 22591
# If no file are specified by the user, then we need to provide default
melunko@47
 22592
# value.  By we need to know if files were specified by the user.
melunko@47
 22593
ac_need_defaults=:
melunko@47
 22594
while test $# != 0
melunko@47
 22595
do
melunko@47
 22596
  case $1 in
melunko@47
 22597
  --*=*)
melunko@47
 22598
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
melunko@47
 22599
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
melunko@47
 22600
    ac_shift=:
melunko@47
 22601
    ;;
melunko@47
 22602
  -*)
melunko@47
 22603
    ac_option=$1
melunko@47
 22604
    ac_optarg=$2
melunko@47
 22605
    ac_shift=shift
melunko@47
 22606
    ;;
melunko@47
 22607
  *) # This is not an option, so the user has probably given explicit
melunko@47
 22608
     # arguments.
melunko@47
 22609
     ac_option=$1
melunko@47
 22610
     ac_need_defaults=false;;
melunko@47
 22611
  esac
melunko@47
 22612
melunko@47
 22613
  case $ac_option in
melunko@47
 22614
  # Handling of the options.
melunko@47
 22615
_ACEOF
melunko@47
 22616
cat >>$CONFIG_STATUS <<\_ACEOF
melunko@47
 22617
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
melunko@47
 22618
    ac_cs_recheck=: ;;
melunko@47
 22619
  --version | --vers* | -V )
melunko@47
 22620
    echo "$ac_cs_version"; exit 0 ;;
melunko@47
 22621
  --he | --h)
melunko@47
 22622
    # Conflict between --help and --header
melunko@47
 22623
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
melunko@47
 22624
Try \`$0 --help' for more information." >&5
melunko@47
 22625
echo "$as_me: error: ambiguous option: $1
melunko@47
 22626
Try \`$0 --help' for more information." >&2;}
melunko@47
 22627
   { (exit 1); exit 1; }; };;
melunko@47
 22628
  --help | --hel | -h )
melunko@47
 22629
    echo "$ac_cs_usage"; exit 0 ;;
melunko@47
 22630
  --debug | --d* | -d )
melunko@47
 22631
    debug=: ;;
melunko@47
 22632
  --file | --fil | --fi | --f )
melunko@47
 22633
    $ac_shift
melunko@47
 22634
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
melunko@47
 22635
    ac_need_defaults=false;;
melunko@47
 22636
  --header | --heade | --head | --hea )
melunko@47
 22637
    $ac_shift
melunko@47
 22638
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
melunko@47
 22639
    ac_need_defaults=false;;
melunko@47
 22640
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
melunko@47
 22641
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
melunko@47
 22642
    ac_cs_silent=: ;;
melunko@47
 22643
melunko@47
 22644
  # This is an error.
melunko@47
 22645
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
melunko@47
 22646
Try \`$0 --help' for more information." >&5
melunko@47
 22647
echo "$as_me: error: unrecognized option: $1
melunko@47
 22648
Try \`$0 --help' for more information." >&2;}
melunko@47
 22649
   { (exit 1); exit 1; }; } ;;
melunko@47
 22650
melunko@47
 22651
  *) ac_config_targets="$ac_config_targets $1" ;;
melunko@47
 22652
melunko@47
 22653
  esac
melunko@47
 22654
  shift
melunko@47
 22655
done
melunko@47
 22656
melunko@47
 22657
ac_configure_extra_args=
melunko@47
 22658
melunko@47
 22659
if $ac_cs_silent; then
melunko@47
 22660
  exec 6>/dev/null
melunko@47
 22661
  ac_configure_extra_args="$ac_configure_extra_args --silent"
melunko@47
 22662
fi
melunko@47
 22663
melunko@47
 22664
_ACEOF
melunko@47
 22665
cat >>$CONFIG_STATUS <<_ACEOF
melunko@47
 22666
if \$ac_cs_recheck; then
melunko@47
 22667
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
melunko@47
 22668
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
melunko@47
 22669
fi
melunko@47
 22670
melunko@47
 22671
_ACEOF
melunko@47
 22672
melunko@47
 22673
cat >>$CONFIG_STATUS <<_ACEOF
melunko@47
 22674
#
melunko@47
 22675
# INIT-COMMANDS section.
melunko@47
 22676
#
melunko@47
 22677
melunko@47
 22678
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
melunko@47
 22679
melunko@47
 22680
_ACEOF
melunko@47
 22681
melunko@47
 22682
melunko@47
 22683
melunko@47
 22684
cat >>$CONFIG_STATUS <<\_ACEOF
melunko@47
 22685
for ac_config_target in $ac_config_targets
melunko@47
 22686
do
melunko@47
 22687
  case "$ac_config_target" in
melunko@47
 22688
  # Handling of arguments.
melunko@47
 22689
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
melunko@47
 22690
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
melunko@47
 22691
  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
melunko@47
 22692
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
melunko@47
 22693
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
melunko@47
 22694
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
melunko@47
 22695
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
melunko@47
 22696
   { (exit 1); exit 1; }; };;
melunko@47
 22697
  esac
melunko@47
 22698
done
melunko@47
 22699
melunko@47
 22700
# If the user did not use the arguments to specify the items to instantiate,
melunko@47
 22701
# then the envvar interface is used.  Set only those that are not.
melunko@47
 22702
# We use the long form for the default assignment because of an extremely
melunko@47
 22703
# bizarre bug on SunOS 4.1.3.
melunko@47
 22704
if $ac_need_defaults; then
melunko@47
 22705
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
melunko@47
 22706
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
melunko@47
 22707
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
melunko@47
 22708
fi
melunko@47
 22709
melunko@47
 22710
# Have a temporary directory for convenience.  Make it in the build tree
melunko@47
 22711
# simply because there is no reason to put it here, and in addition,
melunko@47
 22712
# creating and moving files from /tmp can sometimes cause problems.
melunko@47
 22713
# Create a temporary directory, and hook for its removal unless debugging.
melunko@47
 22714
$debug ||
melunko@47
 22715
{
melunko@47
 22716
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
melunko@47
 22717
  trap '{ (exit 1); exit 1; }' 1 2 13 15
melunko@47
 22718
}
melunko@47
 22719
melunko@47
 22720
# Create a (secure) tmp directory for tmp files.
melunko@47
 22721
melunko@47
 22722
{
melunko@47
 22723
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
melunko@47
 22724
  test -n "$tmp" && test -d "$tmp"
melunko@47
 22725
}  ||
melunko@47
 22726
{
melunko@47
 22727
  tmp=./confstat$$-$RANDOM
melunko@47
 22728
  (umask 077 && mkdir $tmp)
melunko@47
 22729
} ||
melunko@47
 22730
{
melunko@47
 22731
   echo "$me: cannot create a temporary directory in ." >&2
melunko@47
 22732
   { (exit 1); exit 1; }
melunko@47
 22733
}
melunko@47
 22734
melunko@47
 22735
_ACEOF
melunko@47
 22736
melunko@47
 22737
cat >>$CONFIG_STATUS <<_ACEOF
melunko@47
 22738
melunko@47
 22739
#
melunko@47
 22740
# CONFIG_FILES section.
melunko@47
 22741
#
melunko@47
 22742
melunko@47
 22743
# No need to generate the scripts if there are no CONFIG_FILES.
melunko@47
 22744
# This happens for instance when ./config.status config.h
melunko@47
 22745
if test -n "\$CONFIG_FILES"; then
melunko@47
 22746
  # Protect against being on the right side of a sed subst in config.status.
melunko@47
 22747
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
melunko@47
 22748
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
melunko@47
 22749
s,@SHELL@,$SHELL,;t t
melunko@47
 22750
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
melunko@47
 22751
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
melunko@47
 22752
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
melunko@47
 22753
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
melunko@47
 22754
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
melunko@47
 22755
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
melunko@47
 22756
s,@exec_prefix@,$exec_prefix,;t t
melunko@47
 22757
s,@prefix@,$prefix,;t t
melunko@47
 22758
s,@program_transform_name@,$program_transform_name,;t t
melunko@47
 22759
s,@bindir@,$bindir,;t t
melunko@47
 22760
s,@sbindir@,$sbindir,;t t
melunko@47
 22761
s,@libexecdir@,$libexecdir,;t t
melunko@47
 22762
s,@datadir@,$datadir,;t t
melunko@47
 22763
s,@sysconfdir@,$sysconfdir,;t t
melunko@47
 22764
s,@sharedstatedir@,$sharedstatedir,;t t
melunko@47
 22765
s,@localstatedir@,$localstatedir,;t t
melunko@47
 22766
s,@libdir@,$libdir,;t t
melunko@47
 22767
s,@includedir@,$includedir,;t t
melunko@47
 22768
s,@oldincludedir@,$oldincludedir,;t t
melunko@47
 22769
s,@infodir@,$infodir,;t t
melunko@47
 22770
s,@mandir@,$mandir,;t t
melunko@47
 22771
s,@build_alias@,$build_alias,;t t
melunko@47
 22772
s,@host_alias@,$host_alias,;t t
melunko@47
 22773
s,@target_alias@,$target_alias,;t t
melunko@47
 22774
s,@DEFS@,$DEFS,;t t
melunko@47
 22775
s,@ECHO_C@,$ECHO_C,;t t
melunko@47
 22776
s,@ECHO_N@,$ECHO_N,;t t
melunko@47
 22777
s,@ECHO_T@,$ECHO_T,;t t
melunko@47
 22778
s,@LIBS@,$LIBS,;t t
melunko@47
 22779
s,@build@,$build,;t t
melunko@47
 22780
s,@build_cpu@,$build_cpu,;t t
melunko@47
 22781
s,@build_vendor@,$build_vendor,;t t
melunko@47
 22782
s,@build_os@,$build_os,;t t
melunko@47
 22783
s,@host@,$host,;t t
melunko@47
 22784
s,@host_cpu@,$host_cpu,;t t
melunko@47
 22785
s,@host_vendor@,$host_vendor,;t t
melunko@47
 22786
s,@host_os@,$host_os,;t t
melunko@47
 22787
s,@target@,$target,;t t
melunko@47
 22788
s,@target_cpu@,$target_cpu,;t t
melunko@47
 22789
s,@target_vendor@,$target_vendor,;t t
melunko@47
 22790
s,@target_os@,$target_os,;t t
melunko@47
 22791
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
melunko@47
 22792
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
melunko@47
 22793
s,@MAINT@,$MAINT,;t t
melunko@47
 22794
s,@GST_PLUGINS_VERSION@,$GST_PLUGINS_VERSION,;t t
melunko@47
 22795
s,@GST_PLUGINS_VERSION_RELEASE@,$GST_PLUGINS_VERSION_RELEASE,;t t
melunko@47
 22796
s,@GST_PLUGINS_VERSION_MAJOR@,$GST_PLUGINS_VERSION_MAJOR,;t t
melunko@47
 22797
s,@GST_PLUGINS_VERSION_MINOR@,$GST_PLUGINS_VERSION_MINOR,;t t
melunko@47
 22798
s,@GST_PLUGINS_VERSION_MICRO@,$GST_PLUGINS_VERSION_MICRO,;t t
melunko@47
 22799
s,@GST_PLUGINS_VERSION_NANO@,$GST_PLUGINS_VERSION_NANO,;t t
melunko@47
 22800
s,@PACKAGE@,$PACKAGE,;t t
melunko@47
 22801
s,@VERSION@,$VERSION,;t t
melunko@47
 22802
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
melunko@47
 22803
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
melunko@47
 22804
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
melunko@47
 22805
s,@CYGPATH_W@,$CYGPATH_W,;t t
melunko@47
 22806
s,@ACLOCAL@,$ACLOCAL,;t t
melunko@47
 22807
s,@AUTOCONF@,$AUTOCONF,;t t
melunko@47
 22808
s,@AUTOMAKE@,$AUTOMAKE,;t t
melunko@47
 22809
s,@AUTOHEADER@,$AUTOHEADER,;t t
melunko@47
 22810
s,@MAKEINFO@,$MAKEINFO,;t t
melunko@47
 22811
s,@AMTAR@,$AMTAR,;t t
melunko@47
 22812
s,@install_sh@,$install_sh,;t t
melunko@47
 22813
s,@STRIP@,$STRIP,;t t
melunko@47
 22814
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
melunko@47
 22815
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
melunko@47
 22816
s,@mkdir_p@,$mkdir_p,;t t
melunko@47
 22817
s,@AWK@,$AWK,;t t
melunko@47
 22818
s,@SET_MAKE@,$SET_MAKE,;t t
melunko@47
 22819
s,@am__leading_dot@,$am__leading_dot,;t t
melunko@47
 22820
s,@CC@,$CC,;t t
melunko@47
 22821
s,@CFLAGS@,$CFLAGS,;t t
melunko@47
 22822
s,@LDFLAGS@,$LDFLAGS,;t t
melunko@47
 22823
s,@CPPFLAGS@,$CPPFLAGS,;t t
melunko@47
 22824
s,@ac_ct_CC@,$ac_ct_CC,;t t
melunko@47
 22825
s,@EXEEXT@,$EXEEXT,;t t
melunko@47
 22826
s,@OBJEXT@,$OBJEXT,;t t
melunko@47
 22827
s,@DEPDIR@,$DEPDIR,;t t
melunko@47
 22828
s,@am__include@,$am__include,;t t
melunko@47
 22829
s,@am__quote@,$am__quote,;t t
melunko@47
 22830
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
melunko@47
 22831
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
melunko@47
 22832
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
melunko@47
 22833
s,@CCDEPMODE@,$CCDEPMODE,;t t
melunko@47
 22834
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
melunko@47
 22835
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
melunko@47
 22836
s,@EGREP@,$EGREP,;t t
melunko@47
 22837
s,@LN_S@,$LN_S,;t t
melunko@47
 22838
s,@ECHO@,$ECHO,;t t
melunko@47
 22839
s,@AR@,$AR,;t t
melunko@47
 22840
s,@ac_ct_AR@,$ac_ct_AR,;t t
melunko@47
 22841
s,@RANLIB@,$RANLIB,;t t
melunko@47
 22842
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
melunko@47
 22843
s,@CPP@,$CPP,;t t
melunko@47
 22844
s,@CXX@,$CXX,;t t
melunko@47
 22845
s,@CXXFLAGS@,$CXXFLAGS,;t t
melunko@47
 22846
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
melunko@47
 22847
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
melunko@47
 22848
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
melunko@47
 22849
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
melunko@47
 22850
s,@CXXCPP@,$CXXCPP,;t t
melunko@47
 22851
s,@F77@,$F77,;t t
melunko@47
 22852
s,@FFLAGS@,$FFLAGS,;t t
melunko@47
 22853
s,@ac_ct_F77@,$ac_ct_F77,;t t
melunko@47
 22854
s,@LIBTOOL@,$LIBTOOL,;t t
melunko@47
 22855
s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
melunko@47
 22856
s,@CCAS@,$CCAS,;t t
melunko@47
 22857
s,@CCASFLAGS@,$CCASFLAGS,;t t
melunko@47
 22858
s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
melunko@47
 22859
s,@HAVE_CXX@,$HAVE_CXX,;t t
melunko@47
 22860
s,@HAVE_PKGCONFIG@,$HAVE_PKGCONFIG,;t t
melunko@47
 22861
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
melunko@47
 22862
s,@GST_CFLAGS@,$GST_CFLAGS,;t t
melunko@47
 22863
s,@GST_LIBS@,$GST_LIBS,;t t
melunko@47
 22864
s,@GST_MAJORMINOR@,$GST_MAJORMINOR,;t t
melunko@47
 22865
s,@GST_BASE_CFLAGS@,$GST_BASE_CFLAGS,;t t
melunko@47
 22866
s,@GST_BASE_LIBS@,$GST_BASE_LIBS,;t t
melunko@47
 22867
s,@GST_PLUGINS_BASE_CFLAGS@,$GST_PLUGINS_BASE_CFLAGS,;t t
melunko@47
 22868
s,@GST_PLUGINS_BASE_LIBS@,$GST_PLUGINS_BASE_LIBS,;t t
melunko@47
 22869
s,@plugindir@,$plugindir,;t t
melunko@47
 22870
s,@GST_PLUGIN_LDFLAGS@,$GST_PLUGIN_LDFLAGS,;t t
melunko@47
 22871
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
melunko@47
 22872
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
melunko@47
 22873
CEOF
melunko@47
 22874
melunko@47
 22875
_ACEOF
melunko@47
 22876
melunko@47
 22877
  cat >>$CONFIG_STATUS <<\_ACEOF
melunko@47
 22878
  # Split the substitutions into bite-sized pieces for seds with
melunko@47
 22879
  # small command number limits, like on Digital OSF/1 and HP-UX.
melunko@47
 22880
  ac_max_sed_lines=48
melunko@47
 22881
  ac_sed_frag=1 # Number of current file.
melunko@47
 22882
  ac_beg=1 # First line for current file.
melunko@47
 22883
  ac_end=$ac_max_sed_lines # Line after last line for current file.
melunko@47
 22884
  ac_more_lines=:
melunko@47
 22885
  ac_sed_cmds=
melunko@47
 22886
  while $ac_more_lines; do
melunko@47
 22887
    if test $ac_beg -gt 1; then
melunko@47
 22888
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
melunko@47
 22889
    else
melunko@47
 22890
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
melunko@47
 22891
    fi
melunko@47
 22892
    if test ! -s $tmp/subs.frag; then
melunko@47
 22893
      ac_more_lines=false
melunko@47
 22894
    else
melunko@47
 22895
      # The purpose of the label and of the branching condition is to
melunko@47
 22896
      # speed up the sed processing (if there are no `@' at all, there
melunko@47
 22897
      # is no need to browse any of the substitutions).
melunko@47
 22898
      # These are the two extra sed commands mentioned above.
melunko@47
 22899
      (echo ':t
melunko@47
 22900
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
melunko@47
 22901
      if test -z "$ac_sed_cmds"; then
melunko@47
 22902
	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
melunko@47
 22903
      else
melunko@47
 22904
	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
melunko@47
 22905
      fi
melunko@47
 22906
      ac_sed_frag=`expr $ac_sed_frag + 1`
melunko@47
 22907
      ac_beg=$ac_end
melunko@47
 22908
      ac_end=`expr $ac_end + $ac_max_sed_lines`
melunko@47
 22909
    fi
melunko@47
 22910
  done
melunko@47
 22911
  if test -z "$ac_sed_cmds"; then
melunko@47
 22912
    ac_sed_cmds=cat
melunko@47
 22913
  fi
melunko@47
 22914
fi # test -n "$CONFIG_FILES"
melunko@47
 22915
melunko@47
 22916
_ACEOF
melunko@47
 22917
cat >>$CONFIG_STATUS <<\_ACEOF
melunko@47
 22918
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
melunko@47
 22919
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
melunko@47
 22920
  case $ac_file in
melunko@47
 22921
  - | *:- | *:-:* ) # input from stdin
melunko@47
 22922
	cat >$tmp/stdin
melunko@47
 22923
	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
melunko@47
 22924
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
melunko@47
 22925
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
melunko@47
 22926
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
melunko@47
 22927
  * )   ac_file_in=$ac_file.in ;;
melunko@47
 22928
  esac
melunko@47
 22929
melunko@47
 22930
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
melunko@47
 22931
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
melunko@47
 22932
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
melunko@47
 22933
	 X"$ac_file" : 'X\(//\)[^/]' \| \
melunko@47
 22934
	 X"$ac_file" : 'X\(//\)$' \| \
melunko@47
 22935
	 X"$ac_file" : 'X\(/\)' \| \
melunko@47
 22936
	 .     : '\(.\)' 2>/dev/null ||
melunko@47
 22937
echo X"$ac_file" |
melunko@47
 22938
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
melunko@47
 22939
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
melunko@47
 22940
  	  /^X\(\/\/\)$/{ s//\1/; q; }
melunko@47
 22941
  	  /^X\(\/\).*/{ s//\1/; q; }
melunko@47
 22942
  	  s/.*/./; q'`
melunko@47
 22943
  { if $as_mkdir_p; then
melunko@47
 22944
    mkdir -p "$ac_dir"
melunko@47
 22945
  else
melunko@47
 22946
    as_dir="$ac_dir"
melunko@47
 22947
    as_dirs=
melunko@47
 22948
    while test ! -d "$as_dir"; do
melunko@47
 22949
      as_dirs="$as_dir $as_dirs"
melunko@47
 22950
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
melunko@47
 22951
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
melunko@47
 22952
	 X"$as_dir" : 'X\(//\)[^/]' \| \
melunko@47
 22953
	 X"$as_dir" : 'X\(//\)$' \| \
melunko@47
 22954
	 X"$as_dir" : 'X\(/\)' \| \
melunko@47
 22955
	 .     : '\(.\)' 2>/dev/null ||
melunko@47
 22956
echo X"$as_dir" |
melunko@47
 22957
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
melunko@47
 22958
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
melunko@47
 22959
  	  /^X\(\/\/\)$/{ s//\1/; q; }
melunko@47
 22960
  	  /^X\(\/\).*/{ s//\1/; q; }
melunko@47
 22961
  	  s/.*/./; q'`
melunko@47
 22962
    done
melunko@47
 22963
    test ! -n "$as_dirs" || mkdir $as_dirs
melunko@47
 22964
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
melunko@47
 22965
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
melunko@47
 22966
   { (exit 1); exit 1; }; }; }
melunko@47
 22967
melunko@47
 22968
  ac_builddir=.
melunko@47
 22969
melunko@47
 22970
if test "$ac_dir" != .; then
melunko@47
 22971
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
melunko@47
 22972
  # A "../" for each directory in $ac_dir_suffix.
melunko@47
 22973
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
melunko@47
 22974
else
melunko@47
 22975
  ac_dir_suffix= ac_top_builddir=
melunko@47
 22976
fi
melunko@47
 22977
melunko@47
 22978
case $srcdir in
melunko@47
 22979
  .)  # No --srcdir option.  We are building in place.
melunko@47
 22980
    ac_srcdir=.
melunko@47
 22981
    if test -z "$ac_top_builddir"; then
melunko@47
 22982
       ac_top_srcdir=.
melunko@47
 22983
    else
melunko@47
 22984
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
melunko@47
 22985
    fi ;;
melunko@47
 22986
  [\\/]* | ?:[\\/]* )  # Absolute path.
melunko@47
 22987
    ac_srcdir=$srcdir$ac_dir_suffix;
melunko@47
 22988
    ac_top_srcdir=$srcdir ;;
melunko@47
 22989
  *) # Relative path.
melunko@47
 22990
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
melunko@47
 22991
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
melunko@47
 22992
esac
melunko@47
 22993
melunko@47
 22994
# Do not use `cd foo && pwd` to compute absolute paths, because
melunko@47
 22995
# the directories may not exist.
melunko@47
 22996
case `pwd` in
melunko@47
 22997
.) ac_abs_builddir="$ac_dir";;
melunko@47
 22998
*)
melunko@47
 22999
  case "$ac_dir" in
melunko@47
 23000
  .) ac_abs_builddir=`pwd`;;
melunko@47
 23001
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
melunko@47
 23002
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
melunko@47
 23003
  esac;;
melunko@47
 23004
esac
melunko@47
 23005
case $ac_abs_builddir in
melunko@47
 23006
.) ac_abs_top_builddir=${ac_top_builddir}.;;
melunko@47
 23007
*)
melunko@47
 23008
  case ${ac_top_builddir}. in
melunko@47
 23009
  .) ac_abs_top_builddir=$ac_abs_builddir;;
melunko@47
 23010
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
melunko@47
 23011
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
melunko@47
 23012
  esac;;
melunko@47
 23013
esac
melunko@47
 23014
case $ac_abs_builddir in
melunko@47
 23015
.) ac_abs_srcdir=$ac_srcdir;;
melunko@47
 23016
*)
melunko@47
 23017
  case $ac_srcdir in
melunko@47
 23018
  .) ac_abs_srcdir=$ac_abs_builddir;;
melunko@47
 23019
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
melunko@47
 23020
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
melunko@47
 23021
  esac;;
melunko@47
 23022
esac
melunko@47
 23023
case $ac_abs_builddir in
melunko@47
 23024
.) ac_abs_top_srcdir=$ac_top_srcdir;;
melunko@47
 23025
*)
melunko@47
 23026
  case $ac_top_srcdir in
melunko@47
 23027
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
melunko@47
 23028
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
melunko@47
 23029
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
melunko@47
 23030
  esac;;
melunko@47
 23031
esac
melunko@47
 23032
melunko@47
 23033
melunko@47
 23034
  case $INSTALL in
melunko@47
 23035
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
melunko@47
 23036
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
melunko@47
 23037
  esac
melunko@47
 23038
melunko@47
 23039
  # Let's still pretend it is `configure' which instantiates (i.e., don't
melunko@47
 23040
  # use $as_me), people would be surprised to read:
melunko@47
 23041
  #    /* config.h.  Generated by config.status.  */
melunko@47
 23042
  if test x"$ac_file" = x-; then
melunko@47
 23043
    configure_input=
melunko@47
 23044
  else
melunko@47
 23045
    configure_input="$ac_file.  "
melunko@47
 23046
  fi
melunko@47
 23047
  configure_input=$configure_input"Generated from `echo $ac_file_in |
melunko@47
 23048
				     sed 's,.*/,,'` by configure."
melunko@47
 23049
melunko@47
 23050
  # First look for the input files in the build tree, otherwise in the
melunko@47
 23051
  # src tree.
melunko@47
 23052
  ac_file_inputs=`IFS=:
melunko@47
 23053
    for f in $ac_file_in; do
melunko@47
 23054
      case $f in
melunko@47
 23055
      -) echo $tmp/stdin ;;
melunko@47
 23056
      [\\/$]*)
melunko@47
 23057
	 # Absolute (can't be DOS-style, as IFS=:)
melunko@47
 23058
	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
melunko@47
 23059
echo "$as_me: error: cannot find input file: $f" >&2;}
melunko@47
 23060
   { (exit 1); exit 1; }; }
melunko@47
 23061
	 echo "$f";;
melunko@47
 23062
      *) # Relative
melunko@47
 23063
	 if test -f "$f"; then
melunko@47
 23064
	   # Build tree
melunko@47
 23065
	   echo "$f"
melunko@47
 23066
	 elif test -f "$srcdir/$f"; then
melunko@47
 23067
	   # Source tree
melunko@47
 23068
	   echo "$srcdir/$f"
melunko@47
 23069
	 else
melunko@47
 23070
	   # /dev/null tree
melunko@47
 23071
	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
melunko@47
 23072
echo "$as_me: error: cannot find input file: $f" >&2;}
melunko@47
 23073
   { (exit 1); exit 1; }; }
melunko@47
 23074
	 fi;;
melunko@47
 23075
      esac
melunko@47
 23076
    done` || { (exit 1); exit 1; }
melunko@47
 23077
melunko@47
 23078
  if test x"$ac_file" != x-; then
melunko@47
 23079
    { echo "$as_me:$LINENO: creating $ac_file" >&5
melunko@47
 23080
echo "$as_me: creating $ac_file" >&6;}
melunko@47
 23081
    rm -f "$ac_file"
melunko@47
 23082
  fi
melunko@47
 23083
_ACEOF
melunko@47
 23084
cat >>$CONFIG_STATUS <<_ACEOF
melunko@47
 23085
  sed "$ac_vpsub
melunko@47
 23086
$extrasub
melunko@47
 23087
_ACEOF
melunko@47
 23088
cat >>$CONFIG_STATUS <<\_ACEOF
melunko@47
 23089
:t
melunko@47
 23090
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
melunko@47
 23091
s,@configure_input@,$configure_input,;t t
melunko@47
 23092
s,@srcdir@,$ac_srcdir,;t t
melunko@47
 23093
s,@abs_srcdir@,$ac_abs_srcdir,;t t
melunko@47
 23094
s,@top_srcdir@,$ac_top_srcdir,;t t
melunko@47
 23095
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
melunko@47
 23096
s,@builddir@,$ac_builddir,;t t
melunko@47
 23097
s,@abs_builddir@,$ac_abs_builddir,;t t
melunko@47
 23098
s,@top_builddir@,$ac_top_builddir,;t t
melunko@47
 23099
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
melunko@47
 23100
s,@INSTALL@,$ac_INSTALL,;t t
melunko@47
 23101
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
melunko@47
 23102
  rm -f $tmp/stdin
melunko@47
 23103
  if test x"$ac_file" != x-; then
melunko@47
 23104
    mv $tmp/out $ac_file
melunko@47
 23105
  else
melunko@47
 23106
    cat $tmp/out
melunko@47
 23107
    rm -f $tmp/out
melunko@47
 23108
  fi
melunko@47
 23109
melunko@47
 23110
done
melunko@47
 23111
_ACEOF
melunko@47
 23112
cat >>$CONFIG_STATUS <<\_ACEOF
melunko@47
 23113
melunko@47
 23114
#
melunko@47
 23115
# CONFIG_HEADER section.
melunko@47
 23116
#
melunko@47
 23117
melunko@47
 23118
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
melunko@47
 23119
# NAME is the cpp macro being defined and VALUE is the value it is being given.
melunko@47
 23120
#
melunko@47
 23121
# ac_d sets the value in "#define NAME VALUE" lines.
melunko@47
 23122
ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
melunko@47
 23123
ac_dB='[	 ].*$,\1#\2'
melunko@47
 23124
ac_dC=' '
melunko@47
 23125
ac_dD=',;t'
melunko@47
 23126
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
melunko@47
 23127
ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
melunko@47
 23128
ac_uB='$,\1#\2define\3'
melunko@47
 23129
ac_uC=' '
melunko@47
 23130
ac_uD=',;t'
melunko@47
 23131
melunko@47
 23132
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
melunko@47
 23133
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
melunko@47
 23134
  case $ac_file in
melunko@47
 23135
  - | *:- | *:-:* ) # input from stdin
melunko@47
 23136
	cat >$tmp/stdin
melunko@47
 23137
	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
melunko@47
 23138
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
melunko@47
 23139
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
melunko@47
 23140
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
melunko@47
 23141
  * )   ac_file_in=$ac_file.in ;;
melunko@47
 23142
  esac
melunko@47
 23143
melunko@47
 23144
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
melunko@47
 23145
echo "$as_me: creating $ac_file" >&6;}
melunko@47
 23146
melunko@47
 23147
  # First look for the input files in the build tree, otherwise in the
melunko@47
 23148
  # src tree.
melunko@47
 23149
  ac_file_inputs=`IFS=:
melunko@47
 23150
    for f in $ac_file_in; do
melunko@47
 23151
      case $f in
melunko@47
 23152
      -) echo $tmp/stdin ;;
melunko@47
 23153
      [\\/$]*)
melunko@47
 23154
	 # Absolute (can't be DOS-style, as IFS=:)
melunko@47
 23155
	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
melunko@47
 23156
echo "$as_me: error: cannot find input file: $f" >&2;}
melunko@47
 23157
   { (exit 1); exit 1; }; }
melunko@47
 23158
	 # Do quote $f, to prevent DOS paths from being IFS'd.
melunko@47
 23159
	 echo "$f";;
melunko@47
 23160
      *) # Relative
melunko@47
 23161
	 if test -f "$f"; then
melunko@47
 23162
	   # Build tree
melunko@47
 23163
	   echo "$f"
melunko@47
 23164
	 elif test -f "$srcdir/$f"; then
melunko@47
 23165
	   # Source tree
melunko@47
 23166
	   echo "$srcdir/$f"
melunko@47
 23167
	 else
melunko@47
 23168
	   # /dev/null tree
melunko@47
 23169
	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
melunko@47
 23170
echo "$as_me: error: cannot find input file: $f" >&2;}
melunko@47
 23171
   { (exit 1); exit 1; }; }
melunko@47
 23172
	 fi;;
melunko@47
 23173
      esac
melunko@47
 23174
    done` || { (exit 1); exit 1; }
melunko@47
 23175
  # Remove the trailing spaces.
melunko@47
 23176
  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
melunko@47
 23177
melunko@47
 23178
_ACEOF
melunko@47
 23179
melunko@47
 23180
# Transform confdefs.h into two sed scripts, `conftest.defines' and
melunko@47
 23181
# `conftest.undefs', that substitutes the proper values into
melunko@47
 23182
# config.h.in to produce config.h.  The first handles `#define'
melunko@47
 23183
# templates, and the second `#undef' templates.
melunko@47
 23184
# And first: Protect against being on the right side of a sed subst in
melunko@47
 23185
# config.status.  Protect against being in an unquoted here document
melunko@47
 23186
# in config.status.
melunko@47
 23187
rm -f conftest.defines conftest.undefs
melunko@47
 23188
# Using a here document instead of a string reduces the quoting nightmare.
melunko@47
 23189
# Putting comments in sed scripts is not portable.
melunko@47
 23190
#
melunko@47
 23191
# `end' is used to avoid that the second main sed command (meant for
melunko@47
 23192
# 0-ary CPP macros) applies to n-ary macro definitions.
melunko@47
 23193
# See the Autoconf documentation for `clear'.
melunko@47
 23194
cat >confdef2sed.sed <<\_ACEOF
melunko@47
 23195
s/[\\&,]/\\&/g
melunko@47
 23196
s,[\\$`],\\&,g
melunko@47
 23197
t clear
melunko@47
 23198
: clear
melunko@47
 23199
s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
melunko@47
 23200
t end
melunko@47
 23201
s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
melunko@47
 23202
: end
melunko@47
 23203
_ACEOF
melunko@47
 23204
# If some macros were called several times there might be several times
melunko@47
 23205
# the same #defines, which is useless.  Nevertheless, we may not want to
melunko@47
 23206
# sort them, since we want the *last* AC-DEFINE to be honored.
melunko@47
 23207
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
melunko@47
 23208
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
melunko@47
 23209
rm -f confdef2sed.sed
melunko@47
 23210
melunko@47
 23211
# This sed command replaces #undef with comments.  This is necessary, for
melunko@47
 23212
# example, in the case of _POSIX_SOURCE, which is predefined and required
melunko@47
 23213
# on some systems where configure will not decide to define it.
melunko@47
 23214
cat >>conftest.undefs <<\_ACEOF
melunko@47
 23215
s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
melunko@47
 23216
_ACEOF
melunko@47
 23217
melunko@47
 23218
# Break up conftest.defines because some shells have a limit on the size
melunko@47
 23219
# of here documents, and old seds have small limits too (100 cmds).
melunko@47
 23220
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
melunko@47
 23221
echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
melunko@47
 23222
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
melunko@47
 23223
echo '  :' >>$CONFIG_STATUS
melunko@47
 23224
rm -f conftest.tail
melunko@47
 23225
while grep . conftest.defines >/dev/null
melunko@47
 23226
do
melunko@47
 23227
  # Write a limited-size here document to $tmp/defines.sed.
melunko@47
 23228
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
melunko@47
 23229
  # Speed up: don't consider the non `#define' lines.
melunko@47
 23230
  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
melunko@47
 23231
  # Work around the forget-to-reset-the-flag bug.
melunko@47
 23232
  echo 't clr' >>$CONFIG_STATUS
melunko@47
 23233
  echo ': clr' >>$CONFIG_STATUS
melunko@47
 23234
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
melunko@47
 23235
  echo 'CEOF
melunko@47
 23236
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
melunko@47
 23237
  rm -f $tmp/in
melunko@47
 23238
  mv $tmp/out $tmp/in
melunko@47
 23239
' >>$CONFIG_STATUS
melunko@47
 23240
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
melunko@47
 23241
  rm -f conftest.defines
melunko@47
 23242
  mv conftest.tail conftest.defines
melunko@47
 23243
done
melunko@47
 23244
rm -f conftest.defines
melunko@47
 23245
echo '  fi # grep' >>$CONFIG_STATUS
melunko@47
 23246
echo >>$CONFIG_STATUS
melunko@47
 23247
melunko@47
 23248
# Break up conftest.undefs because some shells have a limit on the size
melunko@47
 23249
# of here documents, and old seds have small limits too (100 cmds).
melunko@47
 23250
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
melunko@47
 23251
rm -f conftest.tail
melunko@47
 23252
while grep . conftest.undefs >/dev/null
melunko@47
 23253
do
melunko@47
 23254
  # Write a limited-size here document to $tmp/undefs.sed.
melunko@47
 23255
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
melunko@47
 23256
  # Speed up: don't consider the non `#undef'
melunko@47
 23257
  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
melunko@47
 23258
  # Work around the forget-to-reset-the-flag bug.
melunko@47
 23259
  echo 't clr' >>$CONFIG_STATUS
melunko@47
 23260
  echo ': clr' >>$CONFIG_STATUS
melunko@47
 23261
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
melunko@47
 23262
  echo 'CEOF
melunko@47
 23263
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
melunko@47
 23264
  rm -f $tmp/in
melunko@47
 23265
  mv $tmp/out $tmp/in
melunko@47
 23266
' >>$CONFIG_STATUS
melunko@47
 23267
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
melunko@47
 23268
  rm -f conftest.undefs
melunko@47
 23269
  mv conftest.tail conftest.undefs
melunko@47
 23270
done
melunko@47
 23271
rm -f conftest.undefs
melunko@47
 23272
melunko@47
 23273
cat >>$CONFIG_STATUS <<\_ACEOF
melunko@47
 23274
  # Let's still pretend it is `configure' which instantiates (i.e., don't
melunko@47
 23275
  # use $as_me), people would be surprised to read:
melunko@47
 23276
  #    /* config.h.  Generated by config.status.  */
melunko@47
 23277
  if test x"$ac_file" = x-; then
melunko@47
 23278
    echo "/* Generated by configure.  */" >$tmp/config.h
melunko@47
 23279
  else
melunko@47
 23280
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
melunko@47
 23281
  fi
melunko@47
 23282
  cat $tmp/in >>$tmp/config.h
melunko@47
 23283
  rm -f $tmp/in
melunko@47
 23284
  if test x"$ac_file" != x-; then
melunko@47
 23285
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
melunko@47
 23286
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
melunko@47
 23287
echo "$as_me: $ac_file is unchanged" >&6;}
melunko@47
 23288
    else
melunko@47
 23289
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
melunko@47
 23290
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
melunko@47
 23291
	 X"$ac_file" : 'X\(//\)[^/]' \| \
melunko@47
 23292
	 X"$ac_file" : 'X\(//\)$' \| \
melunko@47
 23293
	 X"$ac_file" : 'X\(/\)' \| \
melunko@47
 23294
	 .     : '\(.\)' 2>/dev/null ||
melunko@47
 23295
echo X"$ac_file" |
melunko@47
 23296
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
melunko@47
 23297
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
melunko@47
 23298
  	  /^X\(\/\/\)$/{ s//\1/; q; }
melunko@47
 23299
  	  /^X\(\/\).*/{ s//\1/; q; }
melunko@47
 23300
  	  s/.*/./; q'`
melunko@47
 23301
      { if $as_mkdir_p; then
melunko@47
 23302
    mkdir -p "$ac_dir"
melunko@47
 23303
  else
melunko@47
 23304
    as_dir="$ac_dir"
melunko@47
 23305
    as_dirs=
melunko@47
 23306
    while test ! -d "$as_dir"; do
melunko@47
 23307
      as_dirs="$as_dir $as_dirs"
melunko@47
 23308
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
melunko@47
 23309
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
melunko@47
 23310
	 X"$as_dir" : 'X\(//\)[^/]' \| \
melunko@47
 23311
	 X"$as_dir" : 'X\(//\)$' \| \
melunko@47
 23312
	 X"$as_dir" : 'X\(/\)' \| \
melunko@47
 23313
	 .     : '\(.\)' 2>/dev/null ||
melunko@47
 23314
echo X"$as_dir" |
melunko@47
 23315
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
melunko@47
 23316
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
melunko@47
 23317
  	  /^X\(\/\/\)$/{ s//\1/; q; }
melunko@47
 23318
  	  /^X\(\/\).*/{ s//\1/; q; }
melunko@47
 23319
  	  s/.*/./; q'`
melunko@47
 23320
    done
melunko@47
 23321
    test ! -n "$as_dirs" || mkdir $as_dirs
melunko@47
 23322
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
melunko@47
 23323
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
melunko@47
 23324
   { (exit 1); exit 1; }; }; }
melunko@47
 23325
melunko@47
 23326
      rm -f $ac_file
melunko@47
 23327
      mv $tmp/config.h $ac_file
melunko@47
 23328
    fi
melunko@47
 23329
  else
melunko@47
 23330
    cat $tmp/config.h
melunko@47
 23331
    rm -f $tmp/config.h
melunko@47
 23332
  fi
melunko@47
 23333
# Compute $ac_file's index in $config_headers.
melunko@47
 23334
_am_stamp_count=1
melunko@47
 23335
for _am_header in $config_headers :; do
melunko@47
 23336
  case $_am_header in
melunko@47
 23337
    $ac_file | $ac_file:* )
melunko@47
 23338
      break ;;
melunko@47
 23339
    * )
melunko@47
 23340
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
melunko@47
 23341
  esac
melunko@47
 23342
done
melunko@47
 23343
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
melunko@47
 23344
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
melunko@47
 23345
	 X$ac_file : 'X\(//\)[^/]' \| \
melunko@47
 23346
	 X$ac_file : 'X\(//\)$' \| \
melunko@47
 23347
	 X$ac_file : 'X\(/\)' \| \
melunko@47
 23348
	 .     : '\(.\)' 2>/dev/null ||
melunko@47
 23349
echo X$ac_file |
melunko@47
 23350
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
melunko@47
 23351
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
melunko@47
 23352
  	  /^X\(\/\/\)$/{ s//\1/; q; }
melunko@47
 23353
  	  /^X\(\/\).*/{ s//\1/; q; }
melunko@47
 23354
  	  s/.*/./; q'`/stamp-h$_am_stamp_count
melunko@47
 23355
done
melunko@47
 23356
_ACEOF
melunko@47
 23357
cat >>$CONFIG_STATUS <<\_ACEOF
melunko@47
 23358
melunko@47
 23359
#
melunko@47
 23360
# CONFIG_COMMANDS section.
melunko@47
 23361
#
melunko@47
 23362
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
melunko@47
 23363
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
melunko@47
 23364
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
melunko@47
 23365
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
melunko@47
 23366
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
melunko@47
 23367
	 X"$ac_dest" : 'X\(//\)[^/]' \| \
melunko@47
 23368
	 X"$ac_dest" : 'X\(//\)$' \| \
melunko@47
 23369
	 X"$ac_dest" : 'X\(/\)' \| \
melunko@47
 23370
	 .     : '\(.\)' 2>/dev/null ||
melunko@47
 23371
echo X"$ac_dest" |
melunko@47
 23372
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
melunko@47
 23373
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
melunko@47
 23374
  	  /^X\(\/\/\)$/{ s//\1/; q; }
melunko@47
 23375
  	  /^X\(\/\).*/{ s//\1/; q; }
melunko@47
 23376
  	  s/.*/./; q'`
melunko@47
 23377
  { if $as_mkdir_p; then
melunko@47
 23378
    mkdir -p "$ac_dir"
melunko@47
 23379
  else
melunko@47
 23380
    as_dir="$ac_dir"
melunko@47
 23381
    as_dirs=
melunko@47
 23382
    while test ! -d "$as_dir"; do
melunko@47
 23383
      as_dirs="$as_dir $as_dirs"
melunko@47
 23384
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
melunko@47
 23385
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
melunko@47
 23386
	 X"$as_dir" : 'X\(//\)[^/]' \| \
melunko@47
 23387
	 X"$as_dir" : 'X\(//\)$' \| \
melunko@47
 23388
	 X"$as_dir" : 'X\(/\)' \| \
melunko@47
 23389
	 .     : '\(.\)' 2>/dev/null ||
melunko@47
 23390
echo X"$as_dir" |
melunko@47
 23391
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
melunko@47
 23392
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
melunko@47
 23393
  	  /^X\(\/\/\)$/{ s//\1/; q; }
melunko@47
 23394
  	  /^X\(\/\).*/{ s//\1/; q; }
melunko@47
 23395
  	  s/.*/./; q'`
melunko@47
 23396
    done
melunko@47
 23397
    test ! -n "$as_dirs" || mkdir $as_dirs
melunko@47
 23398
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
melunko@47
 23399
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
melunko@47
 23400
   { (exit 1); exit 1; }; }; }
melunko@47
 23401
melunko@47
 23402
  ac_builddir=.
melunko@47
 23403
melunko@47
 23404
if test "$ac_dir" != .; then
melunko@47
 23405
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
melunko@47
 23406
  # A "../" for each directory in $ac_dir_suffix.
melunko@47
 23407
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
melunko@47
 23408
else
melunko@47
 23409
  ac_dir_suffix= ac_top_builddir=
melunko@47
 23410
fi
melunko@47
 23411
melunko@47
 23412
case $srcdir in
melunko@47
 23413
  .)  # No --srcdir option.  We are building in place.
melunko@47
 23414
    ac_srcdir=.
melunko@47
 23415
    if test -z "$ac_top_builddir"; then
melunko@47
 23416
       ac_top_srcdir=.
melunko@47
 23417
    else
melunko@47
 23418
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
melunko@47
 23419
    fi ;;
melunko@47
 23420
  [\\/]* | ?:[\\/]* )  # Absolute path.
melunko@47
 23421
    ac_srcdir=$srcdir$ac_dir_suffix;
melunko@47
 23422
    ac_top_srcdir=$srcdir ;;
melunko@47
 23423
  *) # Relative path.
melunko@47
 23424
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
melunko@47
 23425
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
melunko@47
 23426
esac
melunko@47
 23427
melunko@47
 23428
# Do not use `cd foo && pwd` to compute absolute paths, because
melunko@47
 23429
# the directories may not exist.
melunko@47
 23430
case `pwd` in
melunko@47
 23431
.) ac_abs_builddir="$ac_dir";;
melunko@47
 23432
*)
melunko@47
 23433
  case "$ac_dir" in
melunko@47
 23434
  .) ac_abs_builddir=`pwd`;;
melunko@47
 23435
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
melunko@47
 23436
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
melunko@47
 23437
  esac;;
melunko@47
 23438
esac
melunko@47
 23439
case $ac_abs_builddir in
melunko@47
 23440
.) ac_abs_top_builddir=${ac_top_builddir}.;;
melunko@47
 23441
*)
melunko@47
 23442
  case ${ac_top_builddir}. in
melunko@47
 23443
  .) ac_abs_top_builddir=$ac_abs_builddir;;
melunko@47
 23444
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
melunko@47
 23445
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
melunko@47
 23446
  esac;;
melunko@47
 23447
esac
melunko@47
 23448
case $ac_abs_builddir in
melunko@47
 23449
.) ac_abs_srcdir=$ac_srcdir;;
melunko@47
 23450
*)
melunko@47
 23451
  case $ac_srcdir in
melunko@47
 23452
  .) ac_abs_srcdir=$ac_abs_builddir;;
melunko@47
 23453
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
melunko@47
 23454
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
melunko@47
 23455
  esac;;
melunko@47
 23456
esac
melunko@47
 23457
case $ac_abs_builddir in
melunko@47
 23458
.) ac_abs_top_srcdir=$ac_top_srcdir;;
melunko@47
 23459
*)
melunko@47
 23460
  case $ac_top_srcdir in
melunko@47
 23461
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
melunko@47
 23462
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
melunko@47
 23463
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
melunko@47
 23464
  esac;;
melunko@47
 23465
esac
melunko@47
 23466
melunko@47
 23467
melunko@47
 23468
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
melunko@47
 23469
echo "$as_me: executing $ac_dest commands" >&6;}
melunko@47
 23470
  case $ac_dest in
melunko@47
 23471
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
melunko@47
 23472
  # Strip MF so we end up with the name of the file.
melunko@47
 23473
  mf=`echo "$mf" | sed -e 's/:.*$//'`
melunko@47
 23474
  # Check whether this is an Automake generated Makefile or not.
melunko@47
 23475
  # We used to match only the files named `Makefile.in', but
melunko@47
 23476
  # some people rename them; so instead we look at the file content.
melunko@47
 23477
  # Grep'ing the first line is not enough: some people post-process
melunko@47
 23478
  # each Makefile.in and add a new line on top of each file to say so.
melunko@47
 23479
  # So let's grep whole file.
melunko@47
 23480
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
melunko@47
 23481
    dirpart=`(dirname "$mf") 2>/dev/null ||
melunko@47
 23482
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
melunko@47
 23483
	 X"$mf" : 'X\(//\)[^/]' \| \
melunko@47
 23484
	 X"$mf" : 'X\(//\)$' \| \
melunko@47
 23485
	 X"$mf" : 'X\(/\)' \| \
melunko@47
 23486
	 .     : '\(.\)' 2>/dev/null ||
melunko@47
 23487
echo X"$mf" |
melunko@47
 23488
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
melunko@47
 23489
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
melunko@47
 23490
  	  /^X\(\/\/\)$/{ s//\1/; q; }
melunko@47
 23491
  	  /^X\(\/\).*/{ s//\1/; q; }
melunko@47
 23492
  	  s/.*/./; q'`
melunko@47
 23493
  else
melunko@47
 23494
    continue
melunko@47
 23495
  fi
melunko@47
 23496
  grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
melunko@47
 23497
  # Extract the definition of DEP_FILES from the Makefile without
melunko@47
 23498
  # running `make'.
melunko@47
 23499
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
melunko@47
 23500
  test -z "$DEPDIR" && continue
melunko@47
 23501
  # When using ansi2knr, U may be empty or an underscore; expand it
melunko@47
 23502
  U=`sed -n 's/^U = //p' < "$mf"`
melunko@47
 23503
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
melunko@47
 23504
  # We invoke sed twice because it is the simplest approach to
melunko@47
 23505
  # changing $(DEPDIR) to its actual value in the expansion.
melunko@47
 23506
  for file in `sed -n '
melunko@47
 23507
    /^DEP_FILES = .*\\\\$/ {
melunko@47
 23508
      s/^DEP_FILES = //
melunko@47
 23509
      :loop
melunko@47
 23510
	s/\\\\$//
melunko@47
 23511
	p
melunko@47
 23512
	n
melunko@47
 23513
	/\\\\$/ b loop
melunko@47
 23514
      p
melunko@47
 23515
    }
melunko@47
 23516
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
melunko@47
 23517
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
melunko@47
 23518
    # Make sure the directory exists.
melunko@47
 23519
    test -f "$dirpart/$file" && continue
melunko@47
 23520
    fdir=`(dirname "$file") 2>/dev/null ||
melunko@47
 23521
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
melunko@47
 23522
	 X"$file" : 'X\(//\)[^/]' \| \
melunko@47
 23523
	 X"$file" : 'X\(//\)$' \| \
melunko@47
 23524
	 X"$file" : 'X\(/\)' \| \
melunko@47
 23525
	 .     : '\(.\)' 2>/dev/null ||
melunko@47
 23526
echo X"$file" |
melunko@47
 23527
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
melunko@47
 23528
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
melunko@47
 23529
  	  /^X\(\/\/\)$/{ s//\1/; q; }
melunko@47
 23530
  	  /^X\(\/\).*/{ s//\1/; q; }
melunko@47
 23531
  	  s/.*/./; q'`
melunko@47
 23532
    { if $as_mkdir_p; then
melunko@47
 23533
    mkdir -p $dirpart/$fdir
melunko@47
 23534
  else
melunko@47
 23535
    as_dir=$dirpart/$fdir
melunko@47
 23536
    as_dirs=
melunko@47
 23537
    while test ! -d "$as_dir"; do
melunko@47
 23538
      as_dirs="$as_dir $as_dirs"
melunko@47
 23539
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
melunko@47
 23540
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
melunko@47
 23541
	 X"$as_dir" : 'X\(//\)[^/]' \| \
melunko@47
 23542
	 X"$as_dir" : 'X\(//\)$' \| \
melunko@47
 23543
	 X"$as_dir" : 'X\(/\)' \| \
melunko@47
 23544
	 .     : '\(.\)' 2>/dev/null ||
melunko@47
 23545
echo X"$as_dir" |
melunko@47
 23546
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
melunko@47
 23547
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
melunko@47
 23548
  	  /^X\(\/\/\)$/{ s//\1/; q; }
melunko@47
 23549
  	  /^X\(\/\).*/{ s//\1/; q; }
melunko@47
 23550
  	  s/.*/./; q'`
melunko@47
 23551
    done
melunko@47
 23552
    test ! -n "$as_dirs" || mkdir $as_dirs
melunko@47
 23553
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
melunko@47
 23554
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
melunko@47
 23555
   { (exit 1); exit 1; }; }; }
melunko@47
 23556
melunko@47
 23557
    # echo "creating $dirpart/$file"
melunko@47
 23558
    echo '# dummy' > "$dirpart/$file"
melunko@47
 23559
  done
melunko@47
 23560
done
melunko@47
 23561
 ;;
melunko@47
 23562
  esac
melunko@47
 23563
done
melunko@47
 23564
_ACEOF
melunko@47
 23565
melunko@47
 23566
cat >>$CONFIG_STATUS <<\_ACEOF
melunko@47
 23567
melunko@47
 23568
{ (exit 0); exit 0; }
melunko@47
 23569
_ACEOF
melunko@47
 23570
chmod +x $CONFIG_STATUS
melunko@47
 23571
ac_clean_files=$ac_clean_files_save
melunko@47
 23572
melunko@47
 23573
melunko@47
 23574
# configure is writing to config.log, and then calls config.status.
melunko@47
 23575
# config.status does its own redirection, appending to config.log.
melunko@47
 23576
# Unfortunately, on DOS this fails, as config.log is still kept open
melunko@47
 23577
# by configure, so config.status won't be able to write to it; its
melunko@47
 23578
# output is simply discarded.  So we exec the FD to /dev/null,
melunko@47
 23579
# effectively closing config.log, so it can be properly (re)opened and
melunko@47
 23580
# appended to by config.status.  When coming back to configure, we
melunko@47
 23581
# need to make the FD available again.
melunko@47
 23582
if test "$no_create" != yes; then
melunko@47
 23583
  ac_cs_success=:
melunko@47
 23584
  ac_config_status_args=
melunko@47
 23585
  test "$silent" = yes &&
melunko@47
 23586
    ac_config_status_args="$ac_config_status_args --quiet"
melunko@47
 23587
  exec 5>/dev/null
melunko@47
 23588
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
melunko@47
 23589
  exec 5>>config.log
melunko@47
 23590
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
melunko@47
 23591
  # would make configure fail if this is the last instruction.
melunko@47
 23592
  $ac_cs_success || { (exit 1); exit 1; }
melunko@47
 23593
fi
melunko@47
 23594
melunko@47
 23595