configure 913 KB
Newer Older
28001
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28002
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28003
28004
28005
28006
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
28007
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28008
28009
28010
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
28011
28012
28013
28014
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28015
  ac_cv_lib_cblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28016
else
28017
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28018
28019
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28020
	ac_cv_lib_cblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28021
28022
fi

28023
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28024
28025
28026
28027
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
      conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
28028
28029
28030
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_cblas_cblas_dgemm" = x""yes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28031
28032
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCBLAS 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28033
28034
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28035
28036
28037
28038
  LIBS="-lcblas $LIBS"

else
  acx_atlas_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28039
28040
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28041
28042
28043
28044
28045
28046
28047
28048
28049
28050
28051
28052
28053
28054
28055
28056
28057
28058
28059
28060
      if test x$acx_atlas_ok = xyes; then
        ATLAS_LIBPATH="-L$atlas_libdir/lib"
      else
        ATLAS_ERROR="CBLAS/LAPack library files not found in $atlas_libdir!"
      fi
    fi
  fi
  LIBS="$OLIBS"
fi




if test x"$acx_atlas_ok" = xyes; then

cat >>confdefs.h <<\_ACEOF
#define HAVE_ATLAS 1
_ACEOF

  if test x$use_pthreads = xyes; then
28061
28062
    { $as_echo "$as_me:$LINENO: checking for cblas_dgemm in -lptcblas" >&5
$as_echo_n "checking for cblas_dgemm in -lptcblas... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28063
if test "${ac_cv_lib_ptcblas_cblas_dgemm+set}" = set; then
28064
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28065
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28066
28067
28068
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lptcblas $ATLAS_LIBPATH -lcblas -latlas -lm $LIBS"
cat >conftest.$ac_ext <<_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28069
28070
28071
28072
28073
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28074
28075
28076
28077
28078
28079
28080
28081

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28082
28083
28084
int
main ()
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28085
return cblas_dgemm ();
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28086
28087
28088
28089
28090
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28091
28092
28093
28094
28095
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
28096
28097
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28098
  (eval "$ac_link") 2>conftest.er1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28099
28100
28101
28102
  ac_status=$?
  grep -v '^ *+' conftest.er1 >conftest.err
  rm -f conftest.er1
  cat conftest.err >&5
28103
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28104
28105
28106
  (exit $ac_status); } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
28107
28108
28109
28110
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 $as_test_x conftest$ac_exeext
       }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28111
  ac_cv_lib_ptcblas_cblas_dgemm=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28112
else
28113
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28114
28115
sed 's/^/| /' conftest.$ac_ext >&5

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28116
	ac_cv_lib_ptcblas_cblas_dgemm=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28117
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28118

28119
rm -rf conftest.dSYM
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28120
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28121
      conftest$ac_exeext conftest.$ac_ext
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28122
LIBS=$ac_check_lib_save_LIBS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28123
fi
28124
28125
28126
28127
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ptcblas_cblas_dgemm" >&5
$as_echo "$ac_cv_lib_ptcblas_cblas_dgemm" >&6; }
if test "x$ac_cv_lib_ptcblas_cblas_dgemm" = x""yes; then
  acx_atlast_ok=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28128
else
28129
  acx_atlast_ok=no
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28130
28131
fi

28132
    if test x$acx_atlast_ok = xyes; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28133
28134
      ATLAS_LIB="$ATLAS_LIBPATH -llapack -lptcblas -lcblas -latlas"
      LIBS="$OLIBS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28135
28136


Emmanuel Bertin's avatar
Emmanuel Bertin committed
28137
28138
cat >>confdefs.h <<\_ACEOF
#define HAVE_ATLAS_MP 1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28139
28140
_ACEOF

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28141
28142
      use_atlas=yes
    else
28143
28144
28145
28146
      ATLAS_LIB="$ATLAS_LIBPATH -llapack -lcblas -latlas"
      LIBS="$OLIBS"

      ATLAS_WARN="CBLAS/LAPack was compiled without multithreading support!"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28147

28148
      use_atlas=yes
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28149
28150
28151
28152
28153
28154
28155
28156
28157
28158
28159
    fi
  else
    ATLAS_LIB="$ATLAS_LIBPATH -llapack -lcblas -latlas"
    LIBS="$OLIBS"

    use_atlas=yes
  fi
else

  use_atlas=no
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28160

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28161

28162
28163
28164
28165
  if test "$use_atlas" = "yes"; then
    LIBS="$ATLAS_LIB $LIBS"
    if test "$ATLAS_WARN" != ""; then
      { $as_echo "$as_me:$LINENO: WARNING: $ATLAS_WARN" >&5
28166
$as_echo "$as_me: WARNING: $ATLAS_WARN" >&2;}
28167
28168
28169
    fi
  else
    { { $as_echo "$as_me:$LINENO: error: $ATLAS_ERROR Exiting." >&5
28170
$as_echo "$as_me: error: $ATLAS_ERROR Exiting." >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28171
   { (exit 1); exit 1; }; }
28172
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28173
28174
28175
fi

# Link with gprof option
28176
28177
if test "$enable_gprof" = "yes"; then
  if test "$enable_icc" = "yes"; then
28178
    AM_CFLAGS="$AM_CFLAGS -pq"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28179
  else
28180
    AM_CFLAGS="$AM_CFLAGS -pg"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28181
  fi
28182
  enable_best_link="no"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28183
28184
fi

28185
# "Best" linking option
28186
if test "$enable_best_link" = "yes"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28187
  AM_LDFLAGS="-shared-libgcc -static-libtool-libs $AM_LDFLAGS"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28188
28189
fi

28190
28191
28192



Emmanuel Bertin's avatar
Emmanuel Bertin committed
28193
28194

# Display compiler and linker flags
28195
28196
{ $as_echo "$as_me:$LINENO: result: ***************************************************************" >&5
$as_echo "***************************************************************" >&6; }
28197
28198
28199
28200
{ $as_echo "$as_me:$LINENO: result: Compile cmdline:  $CC $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS" >&5
$as_echo "Compile cmdline:  $CC $AM_CPPFLAGS $CPPFLAGS $AM_CFLAGS $CFLAGS" >&6; }
{ $as_echo "$as_me:$LINENO: result: Link    cmdline:  $CC $AM_LDFLAGS $LDFLAGS $LIBS" >&5
$as_echo "Link    cmdline:  $CC $AM_LDFLAGS $LDFLAGS $LIBS" >&6; }
28201
28202
28203
28204
{ $as_echo "$as_me:$LINENO: result: Default XSLT URL: $xsl_url" >&5
$as_echo "Default XSLT URL: $xsl_url" >&6; }
{ $as_echo "$as_me:$LINENO: result: ***************************************************************" >&5
$as_echo "***************************************************************" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28205

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28206
ac_config_files="$ac_config_files Makefile src/Makefile src/fits/Makefile src/levmar/Makefile src/wcs/Makefile man/Makefile tests/Makefile sextractor.spec man/sex.1"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28207
28208
28209
28210
28211
28212
28213
28214
28215
28216
28217
28218
28219



test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28220
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28221
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28222
28223
28224
28225
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28226
28227
28228
28229
28230
28231
28232
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28233
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28234
Usually this means the macro was only invoked conditionally." >&5
28235
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28236
28237
28238
28239
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28240
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28241
Usually this means the macro was only invoked conditionally." >&5
28242
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28243
28244
28245
28246
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28247
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28248
Usually this means the macro was only invoked conditionally." >&5
28249
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28250
28251
28252
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28253
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28254
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28255
Usually this means the macro was only invoked conditionally." >&5
28256
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28257
28258
28259
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
28260
28261
28262
28263
28264
28265
28266
if test -z "${USE_MODEL_TRUE}" && test -z "${USE_MODEL_FALSE}"; then
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_MODEL\" was never defined.
Usually this means the macro was only invoked conditionally." >&5
$as_echo "$as_me: error: conditional \"USE_MODEL\" was never defined.
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28267
if test -z "${USE_THREADS_TRUE}" && test -z "${USE_THREADS_FALSE}"; then
28268
  { { $as_echo "$as_me:$LINENO: error: conditional \"USE_THREADS\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28269
Usually this means the macro was only invoked conditionally." >&5
28270
$as_echo "$as_me: error: conditional \"USE_THREADS\" was never defined.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28271
28272
28273
Usually this means the macro was only invoked conditionally." >&2;}
   { (exit 1); exit 1; }; }
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28274
28275

: ${CONFIG_STATUS=./config.status}
28276
ac_write_fail=0
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28277
28278
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28279
28280
28281
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28282
28283
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF

28294
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28295
28296
28297
28298
## --------------------- ##
## M4sh Initialization.  ##
## --------------------- ##

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28299
28300
# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28301
28302
28303
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  emulate sh
  NULLCMD=:
28304
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28305
28306
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in
  *posix*) set -o posix ;;
esac

fi




# PATH needs CR
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

28326
28327
28328
28329
28330
28331
28332
28333
28334
28335
28336
28337
28338
28339
as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
28340
  else
28341
28342
28343
28344
28345
28346
28347
28348
28349
28350
28351
28352
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
28353
  fi
28354
28355
28356
28357
28358
28359
28360
28361
28362
28363
28364
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28365
28366
28367
28368
28369
28370
28371
28372
28373
28374
fi

# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  as_unset=unset
else
  as_unset=false
fi


Emmanuel Bertin's avatar
Emmanuel Bertin committed
28375
28376
28377
28378
28379
28380
28381
28382
28383
28384
28385
28386
28387
28388
28389
28390
28391
28392
28393
28394
28395
28396
28397
28398
28399
28400
28401
# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
case $0 in
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
28402
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28403
28404
28405
  { (exit 1); exit 1; }
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28406
# Work around bugs in pre-3.0 UWIN ksh.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28407
28408
28409
for as_var in ENV MAIL MAILPATH
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28410
28411
28412
28413
28414
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
28415
28416
28417
28418
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28419
28420

# Required to use basename.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28421
28422
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28423
28424
28425
28426
28427
  as_expr=expr
else
  as_expr=false
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28428
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28429
28430
28431
28432
28433
28434
28435
  as_basename=basename
else
  as_basename=false
fi


# Name of the executable.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28436
as_me=`$as_basename -- "$0" ||
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28437
28438
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28439
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28440
$as_echo X/"$0" |
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28441
28442
28443
28444
28445
28446
28447
28448
28449
28450
28451
28452
28453
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28454

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28455
28456
# CDPATH.
$as_unset CDPATH
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28457
28458
28459
28460
28461
28462



  as_lineno_1=$LINENO
  as_lineno_2=$LINENO
  test "x$as_lineno_1" != "x$as_lineno_2" &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28463
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28464
28465
28466

  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  # uniformly replaced by the line number.  The first 'sed' inserts a
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28467
28468
28469
28470
28471
  # line-number line after each line using $LINENO; the second 'sed'
  # does the real work.  The second script uses 'N' to pair each
  # line-number line with the line containing $LINENO, and appends
  # trailing '-' during substitution so that $LINENO is not a special
  # case at line end.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28472
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28473
28474
28475
28476
28477
28478
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
  # E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28479
    sed '
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28480
28481
28482
28483
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28484
      N
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28485
28486
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28487
      t loop
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28488
      s/-\n.*//
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28489
    ' >$as_me.lineno &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28490
  chmod +x "$as_me.lineno" ||
28491
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28492
28493
28494
28495
   { (exit 1); exit 1; }; }

  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28496
28497
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28498
28499
28500
28501
28502
  # Exit status is that of the last command.
  exit
}


Emmanuel Bertin's avatar
Emmanuel Bertin committed
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516
28517
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in
-n*)
  case `echo 'x\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  *)   ECHO_C='\c';;
  esac;;
*)
  ECHO_N='-n';;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28518
esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28519
28520
if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28521
28522
28523
28524
28525
28526
  as_expr=expr
else
  as_expr=false
fi

rm -f conf$$ conf$$.exe conf$$.file
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28527
28528
28529
28530
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
28531
28532
28533
28534
28535
28536
28537
28538
28539
28540
28541
28542
28543
28544
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -p'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -p'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28545
    as_ln_s='cp -p'
28546
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28547
28548
28549
else
  as_ln_s='cp -p'
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28550
28551
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28552
28553
28554
28555
28556
28557
28558
28559

if mkdir -p . 2>/dev/null; then
  as_mkdir_p=:
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
if test -x / >/dev/null 2>&1; then
  as_test_x='test -x'
else
  if ls -dL / >/dev/null 2>&1; then
    as_ls_L_option=L
  else
    as_ls_L_option=
  fi
  as_test_x='
    eval sh -c '\''
      if test -d "$1"; then
28571
	test -d "$1/.";
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28572
28573
      else
	case $1 in
28574
	-*)set "./$1";;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28575
28576
28577
28578
28579
28580
28581
	esac;
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
	???[sx]*):;;*)false;;esac;fi
    '\'' sh
  '
fi
as_executable_p=$as_test_x
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28582
28583
28584
28585
28586
28587
28588
28589
28590
28591

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28592
# Save the log message, to keep $[0] and so on meaningful, and to
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28593
# report actual input values of CONFIG_FILES etc. instead of their
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28594
28595
# values after options handling.
ac_log="
28596
This file was extended by sextractor $as_me 2.12.2, which was
28597
generated by GNU Autoconf 2.63.  Invocation command line was
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28598
28599
28600
28601
28602
28603
28604

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28605
28606
28607
on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28608
28609
_ACEOF

28610
28611
28612
28613
28614
28615
28616
28617
28618
28619
case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28620
# Files that config.status was made for.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28621
28622
28623
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28624

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28625
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28626

28627
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28628
28629
28630
28631
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.

28632
Usage: $0 [OPTION]... [FILE]...
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28633
28634

  -h, --help       print this help, then exit
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28635
  -V, --version    print version number and configuration settings, then exit
28636
28637
  -q, --quiet, --silent
                   do not print progress messages
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28638
28639
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
28640
28641
28642
28643
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
28654
28655

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to <bug-autoconf@gnu.org>."

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28656
_ACEOF
28657
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28658
ac_cs_version="\\
28659
sextractor config.status 2.12.2
28660
28661
configured by $0, generated by GNU Autoconf 2.63,
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28662

28663
Copyright (C) 2008 Free Software Foundation, Inc.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28664
28665
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28666
28667
28668
28669
28670

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
28671
28672
AWK='$AWK'
test -n "\$AWK" || AWK=awk
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28673
28674
_ACEOF

28675
28676
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28677
28678
28679
28680
28681
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=*)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28682
28683
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28684
28685
    ac_shift=:
    ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28686
  *)
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28687
28688
28689
28690
28691
28692
28693
28694
28695
28696
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28697
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28698
    $as_echo "$ac_cs_version"; exit ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28699
  --debug | --debu | --deb | --de | --d | -d )
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28700
28701
28702
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
28703
28704
28705
28706
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28707
28708
28709
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
28710
28711
28712
28713
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28714
    ac_need_defaults=false;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28715
28716
  --he | --h)
    # Conflict between --help and --header
28717
    { $as_echo "$as_me: error: ambiguous option: $1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28718
28719
28720
Try \`$0 --help' for more information." >&2
   { (exit 1); exit 1; }; };;
  --help | --hel | -h )
28721
    $as_echo "$ac_cs_usage"; exit ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28722
28723
28724
28725
28726
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
28727
  -*) { $as_echo "$as_me: error: unrecognized option: $1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28728
Try \`$0 --help' for more information." >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28729
28730
   { (exit 1); exit 1; }; } ;;

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28731
28732
  *) ac_config_targets="$ac_config_targets $1"
     ac_need_defaults=false ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
28746
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28747
if \$ac_cs_recheck; then
28748
28749
28750
28751
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28752
  export CONFIG_SHELL
28753
  exec "\$@"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28754
28755
28756
fi

_ACEOF
28757
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28758
28759
28760
28761
28762
28763
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
28764
  $as_echo "$ac_log"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28765
} >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28766

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28767
_ACEOF
28768
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28769
#
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28770
# INIT-COMMANDS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28771
28772
28773
28774
28775
#
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"

_ACEOF

28776
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28777
28778

# Handling of arguments.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28779
28780
for ac_config_target in $ac_config_targets
do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28781
28782
28783
28784
28785
28786
28787
28788
28789
28790
28791
28792
28793
  case $ac_config_target in
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
    "src/fits/Makefile") CONFIG_FILES="$CONFIG_FILES src/fits/Makefile" ;;
    "src/levmar/Makefile") CONFIG_FILES="$CONFIG_FILES src/levmar/Makefile" ;;
    "src/wcs/Makefile") CONFIG_FILES="$CONFIG_FILES src/wcs/Makefile" ;;
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    "sextractor.spec") CONFIG_FILES="$CONFIG_FILES sextractor.spec" ;;
    "man/sex.1") CONFIG_FILES="$CONFIG_FILES man/sex.1" ;;

28794
28795
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28796
28797
28798
28799
   { (exit 1); exit 1; }; };;
  esac
done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28800

Emmanuel Bertin's avatar
Emmanuel Bertin committed
28801
28802
28803
28804
28805
28806
28807
28808
28809
28810
28811
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28812
# simply because there is no reason against having it here, and in addition,
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28813
# creating and moving files from /tmp can sometimes cause problems.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28814
28815
28816
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28817
28818
$debug ||
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28819
28820
28821
28822
  tmp=
  trap 'exit_status=$?
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
' 0
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28823
28824
28825
28826
28827
  trap '{ (exit 1); exit 1; }' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28828
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28829
28830
28831
  test -n "$tmp" && test -d "$tmp"
}  ||
{
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28832
28833
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28834
28835
} ||
{
28836
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28837
28838
28839
   { (exit 1); exit 1; }
}

28840
28841
28842
# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28843
28844
if test -n "$CONFIG_FILES"; then

28845

28846
28847
28848
28849
28850
28851
ac_cr='
'
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28852
28853
fi

28854
echo 'BEGIN {' >"$tmp/subs1.awk" &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28855
28856
28857
_ACEOF


28858
28859
28860
28861
28862
28863
28864
28865
28866
{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28867
28868
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
28869
28870
28871
28872
28873
28874
28875
  . ./conf$$subs.sh ||
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
   { (exit 1); exit 1; }; }

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28876
28877
    break
  elif $ac_last_try; then
28878
28879
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28880
28881
28882
28883
28884
   { (exit 1); exit 1; }; }
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
28885
28886
28887
28888
28889
28890
28891
28892
28893
28894
28895
28896
28897
28898
28899
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909
28910
28911
28912
28913
28914
28915
28916
28917
28918
28919
28920
28921
28922
28923
28924
28925
28926
28927
28928
28929
28930
28931
28932
28933
28934
28935
28936
28937
28938
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\).*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\).*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""
28939

28940
28941
28942
28943
28944
28945
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956
28957
28958
28959
}
{
  line = $ 0
  nfields = split(line, field, "@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28960

28961
_ACAWK
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28962
_ACEOF
28963
28964
28965
28966
28967
28968
28969
28970
28971
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
   { (exit 1); exit 1; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28972
_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28973
28974
28975
28976
28977
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987
28988

# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
s/:*\$(srcdir):*/:/
s/:*\${srcdir}:*/:/
s/:*@srcdir@:*/:/
s/^\([^=]*=[	 ]*\):*/\1/
s/:*$//
s/^[^=]*=[	 ]*$//
}'
fi

28989
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Emmanuel Bertin's avatar
Emmanuel Bertin committed
28990
28991
fi # test -n "$CONFIG_FILES"

28992
28993
28994
28995
28996
28997
28998
28999
29000
# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
For faster browsing, not all history is shown. View entire blame