[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit

Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/libc/glibc/glibc-2.22/sysdeps/powerpc/preconfigure b/ap/libc/glibc/glibc-2.22/sysdeps/powerpc/preconfigure
new file mode 100644
index 0000000..0c6fdde
--- /dev/null
+++ b/ap/libc/glibc/glibc-2.22/sysdeps/powerpc/preconfigure
@@ -0,0 +1,17 @@
+# preconfigure fragment for powerpc.
+
+case "$machine" in
+powerpc64*)
+  base_machine=powerpc machine=powerpc/powerpc64
+  ;;
+powerpc*)
+  # Check for e500.
+  $CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null > conftest.i
+  if grep -q __NO_FPRS__ conftest.i && ! grep -q _SOFT_FLOAT conftest.i; then
+    base_machine=powerpc machine=powerpc/powerpc32/e500
+  else
+    base_machine=powerpc machine=powerpc/powerpc32
+  fi
+  rm -f conftest.i
+  ;;
+esac